summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mangle.c b/lib/mangle.c
index b61c57fcf..b514cd8d3 100644
--- a/lib/mangle.c
+++ b/lib/mangle.c
@@ -96,7 +96,7 @@ size_t unhexmangle_to_buffer(const char *s, char *buf, size_t len)
static inline const char *skip_nonspaces(const char *s)
{
- while (*s && !(*s == ' ' || *s == '\t'))
+ while (s && *s && !(*s == ' ' || *s == '\t'))
s++;
return s;
}