From: Matthew Fernandez Date: Sat, 26 Mar 2022 18:07:00 +0000 (-0700) Subject: cmd/smyrna: fix -Wnon-literal-null-conversion with Clang X-Git-Tag: 4.0.0~156^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81144cfd2177627a81a436c06316fa681283aec7;p=graphviz cmd/smyrna: fix -Wnon-literal-null-conversion with Clang This was causing the CMake build (to be enabled in a future commit) on macOS to fail. Gitlab: #1836, #1854 --- diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index b4329972e..98bd812d7 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -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;