Commit da6cbf91 authored by Libretro-Admin's avatar Libretro-Admin
Browse files
parent e7f314e2
......@@ -43,8 +43,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#endif
#endif
static const char *cvar_null_string = "";
#define cvar_entry(ptr) container_of(ptr, struct cvar_s, stree)
DECLARE_STREE_ROOT(cvar_tree);
......@@ -174,9 +172,8 @@ Cvar_VariableString(const char *var_name)
cvar_t *var;
var = Cvar_FindVar(var_name);
if (!var)
return cvar_null_string;
return var->string;
return var ? var->string : "";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment