From 3d8751b49517a53056e1f65747543e4ed9dccd87 Mon Sep 17 00:00:00 2001
From: Sebastian Kayser <sebastian@skayser.de>
Date: Sat, 16 May 2009 10:34:17 +0200
Subject: [PATCH] Fixed non-void return in void delete_process()

Fixes bug #2789781.
---
 ChangeLog    | 1 +
 src/delete.c | 6 ++++--
 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 */
-- 
GitLab