Commit 18da0bf2 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Make it build without warnings if -Wno-zero-length is not set.

parent d42692ea
......@@ -687,7 +687,7 @@ init_zathura(void)
Zathura.Global.show_inputbar = TRUE;
Zathura.Global.show_statusbar = TRUE;
Zathura.State.pages = g_strdup_printf("");
Zathura.State.pages = g_strdup("");
Zathura.State.scroll_percentage = 0;
Zathura.Marker.markers = NULL;
......@@ -1102,7 +1102,7 @@ close_file(gboolean keep_monitor)
g_free(Zathura.State.pages);
gtk_window_set_title(GTK_WINDOW(Zathura.UI.window), "zathura");
Zathura.State.pages = g_strdup_printf("");
Zathura.State.pages = g_strdup("");
g_free(Zathura.State.filename);
Zathura.State.filename = g_strdup((char*) default_text);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment