summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-05 20:00:42 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-05 20:02:02 +0200
commit0b1ad4e3ac08f4f16d6dbf8df0fc622d311ad38b (patch)
tree53696ee4ef7655a99f9550391411a47fe6aafcfd /playlist.c
parent8413c018279f1924ae9f6b59e8afb773aa380936 (diff)
fixed crashbug in pl_load which happens with older gcc
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index da6ec210..3393d714 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1113,6 +1113,7 @@ pl_load (const char *fname) {
DB_decoder_t **decoders = plug_get_decoder_list ();
uint8_t majorver;
uint8_t minorver;
+ playItem_t *it = NULL;
FILE *fp = fopen (fname, "rb");
if (!fp) {
return -1;
@@ -1140,7 +1141,6 @@ pl_load (const char *fname) {
if (fread (&cnt, 1, 4, fp) != 4) {
goto load_fail;
}
- playItem_t *it = NULL;
for (uint32_t i = 0; i < cnt; i++) {
it = malloc (sizeof (playItem_t));
if (!it) {