1
0
Fork 0
forked from len0rd/rockbox

Hopefully fix a crash using %if() with strings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28689 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-11-28 03:42:15 +00:00
parent 0aea17676a
commit 5d274e528c

View file

@ -739,8 +739,8 @@ static const char* NOINLINE get_lif_token_value(struct gui_wps *gwps,
{
case STRING:
if (lif->op == IF_EQUALS)
return strcmp(out_text, lif->operand.data.text) == 0 ?
"eq" : NULL;
return (out_text && strcmp(out_text, lif->operand.data.text) == 0)
? "eq" : NULL;
else
return NULL;
break;