diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 7427a94f5..30be0c28d 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3769,7 +3769,7 @@ static char *get_field(char *src, int nfields) for (i = 0; i < nfields; i++) { while (*p && *p != ' ' && *p != '\t') p++; - if (!p) + if (!*p) break; p++; }