Commit 49b682e0 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

duplicate the string for stdin support

parent 911d84c9
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment