diff --git a/.gitattributes b/.gitattributes index 2790a981c..d7587b5c7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -28,6 +28,7 @@ build_*/* linguist_generated=true *.h text *.csv text *.lk text +*.json text # Ensure those won't be messed up with *.jpg binary diff --git a/ssc/vartab.h b/ssc/vartab.h index b428cb2d5..cec037993 100644 --- a/ssc/vartab.h +++ b/ssc/vartab.h @@ -144,6 +144,7 @@ class var_data var_data &operator=(const var_data &rhs) { copy(rhs); return *this; } void copy( const var_data &rhs ) { + clear(); type=rhs.type; num=rhs.num; str=rhs.str;