summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apppbx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apppbx.cpp b/apppbx.cpp
index 87e4f41..f92f167 100644
--- a/apppbx.cpp
+++ b/apppbx.cpp
@@ -3480,7 +3480,7 @@ int match_list(char *list, char *item)
while(42) {
/* eliminate white spaces */
- while (*list <= ' ')
+ while (*list > '\0' && *list <= ' ')
list++;
if (*list == ',') {
list++;