about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r--src/command/cmd_ac.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 31156e15..6a5e11ad 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -4135,11 +4135,8 @@ _executable_autocomplete(ProfWin* window, const char* const input, gboolean prev
     char* result = NULL;
 
     result = autocomplete_param_with_ac(input, "/executable", executable_ac, TRUE, previous);
-    if (result) {
-        return result;
-    }
 
-    return NULL;
+    return result;
 }
 
 static char*