From ed724cc03dd36aeea5cc959634089c340e3aa9d4 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 12 Nov 2011 18:21:45 +0100 Subject: [PATCH] fix a 'format not a string literal and no format arguments' warning --- zathura.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zathura.c b/zathura.c index 7da80bf..ed13cd4 100644 --- a/zathura.c +++ b/zathura.c @@ -438,9 +438,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite) gchar* file_path = girara_fix_path(path); if (!overwrite && g_file_test(file_path, G_FILE_TEST_EXISTS)) { - gchar* message = g_strdup_printf("File already exists: %s. Use :write! to overwrite it.", file_path); - girara_error(message); - g_free(message); + girara_error("File already exists: %s. Use :write! to overwrite it.", file_path); g_free(file_path); return false; }