summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 5043b33..14a0d56 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1311,9 +1311,9 @@ static int evaluate_conditional(struct gui_wps *gwps, int cond_index)
result, sizeof(result), &intval);
/* intval is now the number of the enum option we want to read,
- starting from 1. If intval is -1, we check on the nullity of value. */
+ starting from 1. If intval is -1, we check if value is empty. */
if (intval == -1)
- intval = value ? 1 : num_options;
+ intval = value && strlen(value) ? 1 : num_options;
else if (intval > num_options || intval < 1)
intval = num_options;