diff options
Diffstat (limited to 'apps/filetree.c')
-rw-r--r-- | apps/filetree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index aaf99dce92..a321a3fc81 100644 --- a/apps/filetree.c +++ b/apps/filetree.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "screens.h" | 36 | #include "screens.h" |
37 | #include "plugin.h" | 37 | #include "plugin.h" |
38 | #include "rolo.h" | 38 | #include "rolo.h" |
39 | #include "sprintf.h" | ||
39 | 40 | ||
40 | static int boot_size = 0; | 41 | static int boot_size = 0; |
41 | static int boot_cluster; | 42 | static int boot_cluster; |
@@ -187,11 +188,11 @@ int ft_load(struct tree_context* c, bool *buffer_full) | |||
187 | { | 188 | { |
188 | extern char lastdir[]; /* from tree.c */ | 189 | extern char lastdir[]; /* from tree.c */ |
189 | int i; | 190 | int i; |
191 | int name_buffer_used = 0; | ||
190 | DIR *dir = opendir(c->currdir); | 192 | DIR *dir = opendir(c->currdir); |
191 | if(!dir) | 193 | if(!dir) |
192 | return -1; /* not a directory */ | 194 | return -1; /* not a directory */ |
193 | 195 | ||
194 | int name_buffer_used = 0; | ||
195 | c->dirsindir = 0; | 196 | c->dirsindir = 0; |
196 | if (buffer_full) | 197 | if (buffer_full) |
197 | *buffer_full = false; | 198 | *buffer_full = false; |