From 8bbc184fd094fabccfad38b55d16fec9cbd6caf9 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sun, 1 Aug 2010 13:40:04 +0200 Subject: [PATCH] Fixed printing --- zathura.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index c4481db..623157d 100644 --- a/zathura.c +++ b/zathura.c @@ -3324,7 +3324,7 @@ cmd_print(int argc, char** argv) } char* escaped_filename = g_shell_quote(Zathura.PDF.file); - char* escaped_addit = g_shell_quote(addit->str); + char* escaped_addit = addit->len ? g_shell_quote(addit->str) : g_strdup(""); char* command = g_strdup_printf(print_command, printer, sites, escaped_addit, escaped_filename); system(command);