]> granicus.if.org Git - graphviz/commitdiff
cmd/smyrna/viewport.c: fix -Wnon-literal-null-conversion with Clang
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 19:46:23 +0000 (12:46 -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/viewport.c

index ad509a4cd0461f238eda8a97f2d19e7c3ac14dc0..e006b0b1f16a28f6639812196b4ac4b18b011957 100644 (file)
@@ -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);