]> granicus.if.org Git - graphviz/commitdiff
cmd/smyrna: fix -Wnon-literal-null-conversion with Clang
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 18:07:00 +0000 (11:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
This was causing the CMake build (to be enabled in a future commit) on macOS to
fail.

Gitlab: #1836, #1854

cmd/smyrna/topviewfuncs.c

index b4329972e4d5ea099d5f1dd0668debf44cfb74b4..98bd812d72a0bec0f06976e28751638e93cb03d6 100644 (file)
@@ -873,7 +873,7 @@ void initSmGraph(Agraph_t * g,topview* rv)
     rv->filtered_attr_list=NULL;
 
     /*set topologilca fisheye to NULL */
-    rv->fisheyeParams.h = '\0';
+    rv->fisheyeParams.h = NULL;
 
     rv->fisheyeParams.active = 0;
     rv->cache.node_id=-1;