summaryrefslogtreecommitdiffstats
path: root/libmenu
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu')
-rw-r--r--libmenu/menu_filesel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c
index 135d57224a..51436a7b6d 100644
--- a/libmenu/menu_filesel.c
+++ b/libmenu/menu_filesel.c
@@ -412,9 +412,8 @@ static int open_fs(menu_t* menu, char* args) {
path = malloc(st.st_size+1);
path[st.st_size] = '\0';
if ((read(path_fp, path, st.st_size) == st.st_size) && path[0] == '/'
- && !stat(path, &st) && S_ISDIR(st.st_mode)){
+ && !stat(path, &st) && S_ISDIR(st.st_mode))
freepath = path;
- }
else {
free(path);
path = NULL;