diff options
| -rw-r--r-- | apps/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index a8aa534..41aafd3 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1425,7 +1425,8 @@ static bool add_dir(char* dirname, int fd) { bool abort = false; char buf[MAX_PATH/2]; /* saving a little stack... */ - + DIR* dir; + /* check for user abort */ #ifdef HAVE_PLAYER_KEYPAD if (button_get(false) == BUTTON_STOP) @@ -1434,7 +1435,7 @@ static bool add_dir(char* dirname, int fd) #endif return true; - DIR* dir = opendir(dirname); + dir = opendir(dirname); if(!dir) return true; |