]> granicus.if.org Git - graphviz/commitdiff
remove an open coded NULL
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 19 May 2021 03:08:09 +0000 (20:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 01:51:23 +0000 (18:51 -0700)
lib/glcomp/glcomptexture.c

index a9e56c2641eb38dc79ded8909fd39bcda9647c0b..7f95bd963f84a09d21a032974ffb1803060d4cff 100644 (file)
@@ -102,8 +102,7 @@ glCompTex *glCompSetAddNewTexLabel(glCompSet * s, char *def, int fs,
     int ind, Er, width, height;
     glCompTex *t;
     cairo_surface_t *surface = NULL;
-    unsigned char *data;
-    data = (unsigned char *) 0;
+    unsigned char *data = NULL;
     Er = 0;
     if (!def)
        return NULL;