mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-15 03:03:45 +01:00
Make it build without warnings if -Wno-zero-length is not set.
This commit is contained in:
parent
d42692eae6
commit
18da0bf228
@ -687,7 +687,7 @@ init_zathura(void)
|
|||||||
Zathura.Global.show_inputbar = TRUE;
|
Zathura.Global.show_inputbar = TRUE;
|
||||||
Zathura.Global.show_statusbar = TRUE;
|
Zathura.Global.show_statusbar = TRUE;
|
||||||
|
|
||||||
Zathura.State.pages = g_strdup_printf("");
|
Zathura.State.pages = g_strdup("");
|
||||||
Zathura.State.scroll_percentage = 0;
|
Zathura.State.scroll_percentage = 0;
|
||||||
|
|
||||||
Zathura.Marker.markers = NULL;
|
Zathura.Marker.markers = NULL;
|
||||||
@ -1102,7 +1102,7 @@ close_file(gboolean keep_monitor)
|
|||||||
g_free(Zathura.State.pages);
|
g_free(Zathura.State.pages);
|
||||||
gtk_window_set_title(GTK_WINDOW(Zathura.UI.window), "zathura");
|
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);
|
g_free(Zathura.State.filename);
|
||||||
Zathura.State.filename = g_strdup((char*) default_text);
|
Zathura.State.filename = g_strdup((char*) default_text);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user