changeset 26961:173347ab9083

Remove useless braces on if() statement. Patch by Guillaume Lecerf <foxcore at gmail com>
author ben
date Thu, 05 Jun 2008 19:47:04 +0000
parents 805f7deb1b48
children 457f8904a5eb
files libmenu/menu_filesel.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_filesel.c	Thu Jun 05 19:46:16 2008 +0000
+++ b/libmenu/menu_filesel.c	Thu Jun 05 19:47:04 2008 +0000
@@ -412,9 +412,8 @@
           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;