diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 03:26:26 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 03:26:26 +0000 |
commit | 483c87a04d3be8be31034a508676e51a423402c4 (patch) | |
tree | 293e68231e3ce50b1006f92f623d1a6859f7ca15 | |
parent | 2e1169bddaa424ae5eef36e2ec12e2a3cb0adc68 (diff) | |
download | rockbox-483c87a04d3be8be31034a508676e51a423402c4.tar.gz rockbox-483c87a04d3be8be31034a508676e51a423402c4.zip |
Oops, the condition was wrong. Sorry about that :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13163 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/gui/gwps-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index b4a2cf9596..5b06dd4b2b 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -1279,8 +1279,7 @@ static int find_conditional_end(struct wps_data *data, int index) | |||
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | int ret = index; | 1281 | int ret = index; |
1282 | while (data->tokens[ret].value.i != 0 | 1282 | while (data->tokens[ret].type != WPS_TOKEN_CONDITIONAL_END) |
1283 | && data->tokens[data->tokens[ret].value.i].type != WPS_TOKEN_CONDITIONAL_END) | ||
1284 | ret = data->tokens[ret].value.i; | 1283 | ret = data->tokens[ret].value.i; |
1285 | 1284 | ||
1286 | /* ret now is the index to the end token for the conditional. */ | 1285 | /* ret now is the index to the end token for the conditional. */ |