diff options
Diffstat (limited to 'apps/gui')
-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. */ |