summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-29 17:14:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-29 17:14:55 +0000
commitb8a861841e7b72f9effc70e4c5c1770b768bf0ae (patch)
tree110a261790a48a7897b6f6565f5ec0da6e9ae4b6 /apps/tree.c
parent7f93394b04a64f2abc787b5ea2d7f9812a774575 (diff)
downloadrockbox-b8a861841e7b72f9effc70e4c5c1770b768bf0ae.zip
rockbox-b8a861841e7b72f9effc70e4c5c1770b768bf0ae.tar.gz
rockbox-b8a861841e7b72f9effc70e4c5c1770b768bf0ae.tar.bz2
rockbox-b8a861841e7b72f9effc70e4c5c1770b768bf0ae.tar.xz
first variables, then code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3190 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c5
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;