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

This commit is contained in:
Sebastian Ramacher 2010-12-01 23:07:09 +01:00
parent d42692eae6
commit 18da0bf228

View File

@ -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);