From 49b682e0a89978aa09f3779392f4093eadca7f88 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 23 Oct 2011 17:34:10 +0200 Subject: [PATCH] duplicate the string for stdin support --- zathura.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index ebaf12d..c94d1f0 100644 --- a/zathura.c +++ b/zathura.c @@ -352,8 +352,9 @@ document_info_open(gpointer data) if (file == NULL) { girara_notify(document_info->zathura->ui.session, GIRARA_ERROR, "Could not read file from stdin and write it to a temporary file."); + } else { + document_info->zathura->stdin_support.file = g_strdup(file); } - document_info->zathura->stdin_support.file = file; } else { file = g_strdup(document_info->path); }