]> granicus.if.org Git - graphviz/commitdiff
common: use a simpler C99 zero init for null terminating 'Arrownames'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Oct 2022 22:27:52 +0000 (15:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 12 Oct 2022 14:51:43 +0000 (07:51 -0700)
lib/common/arrows.c

index 831f5f3602001d7f750d1d00a9c897a8ac25c124..9012bff15f287608cb7ee12c624596144ce061a7 100644 (file)
@@ -102,7 +102,7 @@ static const arrowname_t Arrownames[] = {
     {"mpty", ARR_TYPE_NORM},
     {"curve", ARR_TYPE_CURVE},
     {"icurve", (ARR_TYPE_CURVE | ARR_MOD_INV)},
-    {(char *) 0, ARR_TYPE_NONE}
+    {0}
 };
 
 typedef struct arrowtype_t {