summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-23 21:07:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-23 21:07:30 +0000
commit4793f3b6ded4f9c7a57f370dda298a2eac6cd0d3 (patch)
tree873874b0b2e20aa06937eca77722c258af1736fa
parenteae511030cd7540e37a11d4c6d5147fd5c186a1a (diff)
downloadrockbox-4793f3b6ded4f9c7a57f370dda298a2eac6cd0d3.tar.gz
rockbox-4793f3b6ded4f9c7a57f370dda298a2eac6cd0d3.zip
init the playlist struct so that fd is -1 at startup, which then no longer
makes us close fd zero at startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3595 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 4a06606509..48de9dd687 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -38,7 +38,22 @@
38 38
39#include "lang.h" 39#include "lang.h"
40 40
41static struct playlist_info playlist; 41static struct playlist_info playlist={
42 "", /* filename */
43 -1, /* fd */
44 0, /* dirlen */
45 {0}, /* indices[] */
46 0, /* index */
47 0, /* first_index */
48 0, /* seed */
49 0, /* amount */
50 false, /* in_ram */
51 {0}, /* queue_indices[] */
52 0, /* last_queue_index */
53 0, /* queue_index */
54 0, /* num_queued */
55 0 /* start_queue */
56};
42 57
43#define QUEUE_FILE ROCKBOX_DIR "/.queue_file" 58#define QUEUE_FILE ROCKBOX_DIR "/.queue_file"
44 59