diff options
-rw-r--r-- | engines/e_loader_attic.c | 4 | ||||
-rw-r--r-- | test/uitest.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index 050593975d..eba7ab14b8 100644 --- a/engines/e_loader_attic.c +++ b/engines/e_loader_attic.c @@ -73,8 +73,8 @@ static char *file_get_pass(const UI_METHOD *ui_method, char *pass, if ((prompt = UI_construct_prompt(ui, desc, info)) == NULL) { ATTICerr(0, ERR_R_MALLOC_FAILURE); pass = NULL; - } else if (!UI_add_input_string(ui, prompt, UI_INPUT_FLAG_DEFAULT_PWD, - pass, 0, maxsize - 1)) { + } else if (UI_add_input_string(ui, prompt, UI_INPUT_FLAG_DEFAULT_PWD, + pass, 0, maxsize - 1) <= 0) { ATTICerr(0, ERR_R_UI_LIB); pass = NULL; } else { diff --git a/test/uitest.c b/test/uitest.c index 9013126f73..dae324b1f8 100644 --- a/test/uitest.c +++ b/test/uitest.c @@ -44,8 +44,8 @@ static int test_old(void) /* The wrapper passes the UI userdata as the callback userdata param */ UI_add_user_data(ui, defpass); - if (!UI_add_input_string(ui, "prompt", UI_INPUT_FLAG_DEFAULT_PWD, - pass, 0, sizeof(pass) - 1)) + if (UI_add_input_string(ui, "prompt", UI_INPUT_FLAG_DEFAULT_PWD, + pass, 0, sizeof(pass) - 1) <= 0) goto err; switch (UI_process(ui)) { |