summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:27:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:27:55 +0200
commit767ae086391b4ef273bda6940542150c23655e1b (patch)
treeda56dfcd980ac62f14d0c48fb686dd008dc9c97f /src/phrecn.c
parent26bdf36adb93789e7159577e53c9e426bb7a27cd (diff)
photorec(): fix logic when ncurses is missing for an hypotical user stop request
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 4f6b913..c141387 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: