summaryrefslogtreecommitdiff
path: root/fs/afs/addr_prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/addr_prefs.c')
-rw-r--r--fs/afs/addr_prefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/addr_prefs.c b/fs/afs/addr_prefs.c
index c0384201b8fe..133736412c3d 100644
--- a/fs/afs/addr_prefs.c
+++ b/fs/afs/addr_prefs.c
@@ -48,7 +48,7 @@ static int afs_split_string(char **pbuf, char *strv[], unsigned int maxstrv)
strv[count++] = p;
/* Skip over word */
- while (!isspace(*p))
+ while (!isspace(*p) && *p)
p++;
if (!*p)
break;