From df9b1831fb6d88fb875a4be2b402efd9feef106c Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Wed, 21 May 2014 11:53:11 -0500 Subject: [PATCH] coverity: null check after dereference we actually meant to check *p not p. Signed-off-by: Serge Hallyn --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }