From 6f359194ac7b358598cd4f3c86e4818c16edea24 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 3 Jun 2021 17:23:12 -0700 Subject: [PATCH] rephrase an open coded NULL in pathpath --- lib/ast/pathpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0