summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kayser <sebastian@skayser.de>2009-05-16 10:34:17 +0200
committerYorhel <git@yorhel.nl>2009-05-16 10:36:03 +0200
commit3d8751b49517a53056e1f65747543e4ed9dccd87 (patch)
treeda8b20cf75fe4ae4ed386a26fd9df8ed0ddfcb9d
parenta0bf6deebbc7317d2497ec29eedb264d836ccfd9 (diff)
Fixed non-void return in void delete_process()
Fixes bug #2789781.
-rw-r--r--ChangeLog1
-rw-r--r--src/delete.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1665542..ccbb3c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@ git - ?
- Implemented hard link detection
- Properly select the next item after deletion
- Removed reliance of dirfd()
+ - Fixed non-void return in void delete_process()
1.5 - 2009-05-02
- Fixed incorrect apparent size on directory refresh
diff --git a/src/delete.c b/src/delete.c
index a684bef..8d4cc9d 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -213,8 +213,10 @@ void delete_process() {
/* confirm */
seloption = 1;
while(state == DS_CONFIRM && !noconfirm)
- if(input_handle(0))
- return browse_init(root);
+ if(input_handle(0)) {
+ browse_init(root);
+ return;
+ }
/* temporarily re-add hard links, so we won't lose sizes in case we delete
a file of which another file outside this directory was marked as duplicate */