summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 7ba59cb0ab..0ffa16f31b 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -185,7 +185,10 @@ char *rec_create_filename(char *buffer)
185 /* walk through the directory content */ 185 /* walk through the directory content */
186 entry = readdir(dir); 186 entry = readdir(dir);
187 if (!entry) 187 if (!entry)
188 {
189 closedir(dir);
188 break; /* end of dir */ 190 break; /* end of dir */
191 }
189 if (strncasecmp(entry->d_name, "rec_", 4)) 192 if (strncasecmp(entry->d_name, "rec_", 4))
190 continue; /* no recording file */ 193 continue; /* no recording file */
191 curr_rec_file = atoi(&entry->d_name[4]); 194 curr_rec_file = atoi(&entry->d_name[4]);