c++/infra: make clang static analyzer happy
@@ -18,10 +18,13 @@ struct CRustOptionUSize {
};
#ifdef __cplusplus
+#include <cstring>
+
template<typename T>
inline T c_option_empty()
{
T a;
+ std::memset(&a.val, 0, sizeof(a.val));
a.is_some = 0;
return a;
}
