]> granicus.if.org Git - graphviz/commitdiff
common: use a simpler C99 zero init for null terminating 'Arrowmods'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Oct 2022 22:27:20 +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 d0d061e4b83f5ea884d5569313e7b0b1062402e0..d8f5643d5d028a7279b02c4dc9a2117d539d1325 100644 (file)
@@ -77,7 +77,7 @@ static const arrowname_t Arrowmods[] = {
     /* deprecated alternates for backward compat */
     {"e", ARR_MOD_OPEN},       /* o  - needed for "ediamond" */
     {"half", ARR_MOD_LEFT},    /* l  - needed for "halfopen" */
-    {(char *) 0, ARR_TYPE_NONE}
+    {0}
 };
 
 static arrowname_t Arrownames[] = {