From 767ae086391b4ef273bda6940542150c23655e1b Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 19 May 2013 19:27:55 +0200 Subject: [PATCH] photorec(): fix logic when ncurses is missing for an hypotical user stop request --- src/phrecn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phrecn.c b/src/phrecn.c index 4f6b9136..c1413874 100644 --- a/src/phrecn.c +++ b/src/phrecn.c @@ -503,15 +503,15 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da /* Failed to save the session! */ #ifdef HAVE_NCURSES if(ask_confirmation("PhotoRec has been unable to save its session status. Answer Y to really Quit, N to resume the recovery")!=0) - params->status=STATUS_QUIT; #endif + params->status=STATUS_QUIT; } else { #ifdef HAVE_NCURSES if(ask_confirmation("Answer Y to really Quit, N to resume the recovery")!=0) - params->status=STATUS_QUIT; #endif + params->status=STATUS_QUIT; } break; case PSTATUS_OK: