mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:46:01 +01:00
Remove while loop
This commit is contained in:
parent
70dbf39184
commit
6fb95bc6cb
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
|
|||
|
||||
zathura_plugin_error_t error = plugin->open_function(document);
|
||||
if (error != ZATHURA_PLUGIN_ERROR_OK) {
|
||||
while (error == ZATHURA_PLUGIN_ERROR_INVALID_PASSWORD) {
|
||||
if (error == ZATHURA_PLUGIN_ERROR_INVALID_PASSWORD) {
|
||||
zathura_password_dialog_info_t* password_dialog_info = malloc(sizeof(zathura_password_dialog_info_t));
|
||||
if (password_dialog_info != NULL) {
|
||||
password_dialog_info->path = g_strdup(path);
|
||||
|
|
Loading…
Reference in a new issue