From 18da0bf22885b41affa06e8edcfe25df89d5cdce Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 1 Dec 2010 23:07:09 +0100 Subject: [PATCH] Make it build without warnings if -Wno-zero-length is not set. --- zathura.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zathura.c b/zathura.c index 9fa281a..2eb190d 100644 --- a/zathura.c +++ b/zathura.c @@ -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);