Browse code

Revert "pv: handle case when var value ha flag str but null pointer"

This reverts commit 6eb67eaa4fc27d1eb7da7b2b674ffe8e7f86ecbc.

Daniel-Constantin Mierla authored on 19/11/2021 07:45:09
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) && (var->v.value.s.s==NULL)))
93
+	if(value==NULL)
94 94
 	{
95 95
 		if(var->v.flags&VAR_VAL_STR)
96 96
 		{