mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 23:46:00 +01:00
Fix error checking
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
a3d676b96b
commit
138230c3cc
1 changed files with 2 additions and 2 deletions
|
@ -638,9 +638,9 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
||||||
zathura_password_dialog_info_t* password_dialog_info = malloc(sizeof(zathura_password_dialog_info_t));
|
zathura_password_dialog_info_t* password_dialog_info = malloc(sizeof(zathura_password_dialog_info_t));
|
||||||
if (password_dialog_info != NULL) {
|
if (password_dialog_info != NULL) {
|
||||||
password_dialog_info->zathura = zathura;
|
password_dialog_info->zathura = zathura;
|
||||||
|
password_dialog_info->path = g_strdup(path);
|
||||||
|
|
||||||
if (path != NULL) {
|
if (password_dialog_info->path != NULL) {
|
||||||
password_dialog_info->path = g_strdup(path);
|
|
||||||
gdk_threads_add_idle(document_open_password_dialog, password_dialog_info);
|
gdk_threads_add_idle(document_open_password_dialog, password_dialog_info);
|
||||||
goto error_out;
|
goto error_out;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue