]> granicus.if.org Git - graphviz/commitdiff
rephrase an open coded NULL in pathpath
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Jun 2021 00:23:12 +0000 (17:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 14:18:52 +0000 (07:18 -0700)
lib/ast/pathpath.c

index 94dfa0fc9bf879bbb9a5c0cb24491a02ca338886..e20cecc57c1561774c0a08d07697a85ec2a7bf86 100644 (file)
@@ -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) {