]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
Make clang happier
[chaz/openbox] / openbox / openbox.c
index 5be4e785e5e32a2e00693c7749f684e40d8d1969..dd8ba12dfdb5652a4063d5ab19b958245f7cae20 100644 (file)
@@ -417,6 +417,7 @@ gint main(gint argc, gchar **argv)
     obt_display_close();
 
     if (restart) {
+        ob_debug_shutdown();
         if (restart_path != NULL) {
             gint argcp;
             gchar **argvp;
@@ -470,7 +471,8 @@ gint main(gint argc, gchar **argv)
     g_free(ob_sm_id);
     g_free(program_name);
 
-    ob_debug_shutdown();
+    if (!restart)
+        ob_debug_shutdown();
 
     return exitcode;
 }
@@ -662,7 +664,7 @@ static Cursor load_cursor(const gchar *name, guint fontval)
 
 void ob_exit_with_error(const gchar *msg)
 {
-    g_message(msg);
+    g_message("%s", msg);
     session_shutdown(TRUE);
     exit(EXIT_FAILURE);
 }
This page took 0.020247 seconds and 4 git commands to generate.