From: Matthew Fernandez Date: Fri, 4 Jun 2021 00:23:12 +0000 (-0700) Subject: rephrase an open coded NULL in pathpath X-Git-Tag: 2.47.3~5^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f359194ac7b358598cd4f3c86e4818c16edea24;p=graphviz rephrase an open coded NULL in pathpath --- diff --git a/lib/ast/pathpath.c b/lib/ast/pathpath.c index 94dfa0fc9..e20cecc57 100644 --- a/lib/ast/pathpath.c +++ b/lib/ast/pathpath.c @@ -53,7 +53,7 @@ char *pathpath(char *path, const char *p, const char *a, int mode) path = buf; if (!p) { free(cmd); - cmd = a ? strdup(a) : (char *) 0; + cmd = a ? strdup(a) : NULL; return 0; } if (strlen(p) < PATH_MAX) {