mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 07:53:45 +01:00
duplicate the string for stdin support
This commit is contained in:
parent
911d84c908
commit
49b682e0a8
@ -352,8 +352,9 @@ document_info_open(gpointer data)
|
|||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
girara_notify(document_info->zathura->ui.session, GIRARA_ERROR,
|
girara_notify(document_info->zathura->ui.session, GIRARA_ERROR,
|
||||||
"Could not read file from stdin and write it to a temporary file.");
|
"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 {
|
} else {
|
||||||
file = g_strdup(document_info->path);
|
file = g_strdup(document_info->path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user