diff options
Diffstat (limited to 'lib/widgets')
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 61fc47c40..1e14e217b 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -208,19 +208,17 @@ keyword_match (const char *list, for (i = 0; i < keyword_len; i++) { - if (p[i] == ' ') - goto next_char; - if (p[i] != keyword[i]) + { goto next_token; + } } return TRUE; next_token: - while (*p != ' ') p++; - next_char: + while (*p && *p != ' ') p++; if (*p) p++; } |