From: Matthew Fernandez Date: Sat, 26 Mar 2022 19:46:23 +0000 (-0700) Subject: cmd/smyrna/viewport.c: fix -Wnon-literal-null-conversion with Clang X-Git-Tag: 4.0.0~156^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=665d28ddc656cfbca18b7a7da15739ab3e015085;p=graphviz cmd/smyrna/viewport.c: 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/viewport.c b/cmd/smyrna/viewport.c index ad509a4cd..e006b0b1f 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -389,7 +389,7 @@ void init_viewport(ViewInfo * view) view->total_frames = 1500; /*add a call back to the main() */ g_timeout_add_full(G_PRIORITY_DEFAULT, 100u, gl_main_expose, NULL, NULL); - view->cameras = '\0';; + view->cameras = NULL; view->camera_count = 0; view->active_camera = -1; set_viewport_settings_from_template(view, view->systemGraphs.def_attrs);