summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-12-13 19:21:13 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-12-13 19:21:13 -0500
commitda1fbb6d1a4fb0274da08e7fe872b810d6e90d89 (patch)
tree90157875d71886e344c6f0308ac93f2c5508f5ca
parentb6a16949e88dbff5d13fdbaa2cd72ef25e10696a (diff)
downloadrockbox-da1fbb6d1a4fb0274da08e7fe872b810d6e90d89.tar.gz
rockbox-da1fbb6d1a4fb0274da08e7fe872b810d6e90d89.tar.bz2
rockbox-da1fbb6d1a4fb0274da08e7fe872b810d6e90d89.zip
skinengine: Make sure logical IF operator doesn't compare a garbage value
Change-Id: I125bea3c2659326b92eec027cddf0d041f10ebda
-rw-r--r--apps/gui/skin_engine/skin_tokens.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 3eef1e84e7..9df8b7d0c4 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -632,6 +632,7 @@ static const char* NOINLINE get_lif_token_value(struct gui_wps *gwps,
}
break;
case DEFAULT:
+ b = -1;
break;
}