Browse code

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

This reverts commit 2532b5f5fc71d3828e1185c55ad6a6546df312d3.

Daniel-Constantin Mierla authored on 11/11/2021 17:17:31
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
 		{