summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index a8aa5348d0..41aafd30b5 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1425,7 +1425,8 @@ static bool add_dir(char* dirname, int fd)
1425{ 1425{
1426 bool abort = false; 1426 bool abort = false;
1427 char buf[MAX_PATH/2]; /* saving a little stack... */ 1427 char buf[MAX_PATH/2]; /* saving a little stack... */
1428 1428 DIR* dir;
1429
1429 /* check for user abort */ 1430 /* check for user abort */
1430#ifdef HAVE_PLAYER_KEYPAD 1431#ifdef HAVE_PLAYER_KEYPAD
1431 if (button_get(false) == BUTTON_STOP) 1432 if (button_get(false) == BUTTON_STOP)
@@ -1434,7 +1435,7 @@ static bool add_dir(char* dirname, int fd)
1434#endif 1435#endif
1435 return true; 1436 return true;
1436 1437
1437 DIR* dir = opendir(dirname); 1438 dir = opendir(dirname);
1438 if(!dir) 1439 if(!dir)
1439 return true; 1440 return true;
1440 1441