From 4b1f5e5090abed6c618c8ba380cd7d28d140f867 Mon Sep 17 00:00:00 2001 From: Gabriel Dume Date: Thu, 14 Aug 2014 16:31:25 -0400 Subject: cosmetics: Write NULL pointer inequality checks more compactly Signed-off-by: Diego Biurrun --- cmdutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index b1671a49f5..202b288a60 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -176,7 +176,7 @@ static const OptionDef *find_option(const OptionDef *po, const char *name) const char *p = strchr(name, ':'); int len = p ? p - name : strlen(name); - while (po->name != NULL) { + while (po->name) { if (!strncmp(name, po->name, len) && strlen(po->name) == len) break; po++; -- cgit v1.2.3