Commit 138230c3 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix error checking

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent a3d676b9
...@@ -638,9 +638,9 @@ document_open(zathura_t* zathura, const char* path, const char* password, ...@@ -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 {
......
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