From 665d28ddc656cfbca18b7a7da15739ab3e015085 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 26 Mar 2022 12:46:23 -0700 Subject: [PATCH] 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 --- cmd/smyrna/viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0