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:
parent
0aea17676a
commit
5d274e528c
1 changed files with 2 additions and 2 deletions
|
@ -739,8 +739,8 @@ static const char* NOINLINE get_lif_token_value(struct gui_wps *gwps,
|
||||||
{
|
{
|
||||||
case STRING:
|
case STRING:
|
||||||
if (lif->op == IF_EQUALS)
|
if (lif->op == IF_EQUALS)
|
||||||
return strcmp(out_text, lif->operand.data.text) == 0 ?
|
return (out_text && strcmp(out_text, lif->operand.data.text) == 0)
|
||||||
"eq" : NULL;
|
? "eq" : NULL;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue