@@ -138,6 +138,7 @@ int str2val(db_type_t _t, db_val_t* _v, const char* _s, int _l)
}
if (!_s) {
+ memset(_v, 0, sizeof(db_val_t));
VAL_TYPE(_v) = _t;
VAL_NULL(_v) = 1;
return 0;