Browse code

Revert "pv: fix condition in detecting the null string value when setting $var(...)"

This reverts commit ffe311939ebf58e7418940ec6c71bfaf9b21afad.

Daniel-Constantin Mierla authored on 19/11/2021 07:44:49
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ script_var_t* set_var_value(script_var_t* var, int_str *value, int flags)
90 90
 {
91 91
 	if(var==0)
92 92
 		return 0;
93
-	if((value==NULL) || ((flags&VAR_VAL_STR) && (value->s.s==NULL)))
93
+	if((value==NULL) || ((flags&VAR_VAL_STR) && (var->v.value.s.s==NULL)))
94 94
 	{
95 95
 		if(var->v.flags&VAR_VAL_STR)
96 96
 		{