]> granicus.if.org Git - graphviz/commitdiff
remove an open coded NULL
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Jun 2021 02:22:14 +0000 (19:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 00:09:34 +0000 (17:09 -0700)
lib/pathplan/visibility.c

index 98f6bc2ffbae9c0b3ea941f34f2a95a98b3f797a..78a810e2adee423ac4372a538c9b58bf591303e9 100644 (file)
@@ -10,6 +10,7 @@
 
 
 #include <pathplan/vis.h>
+#include <stdlib.h>
 
        /* TRANSPARENT means router sees past colinear obstacles */
 #ifdef TRANSPARENT
@@ -38,7 +39,7 @@ static array2 allocArray(int V, int extra)
        p += V;
     }
     for (i = V; i < V + extra; i++)
-       arr[i] = (COORD *) 0;
+       arr[i] = NULL;
 
     return arr;
 }