diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-05 20:00:42 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-05 20:02:02 +0200 |
commit | 0b1ad4e3ac08f4f16d6dbf8df0fc622d311ad38b (patch) | |
tree | 53696ee4ef7655a99f9550391411a47fe6aafcfd /playlist.c | |
parent | 8413c018279f1924ae9f6b59e8afb773aa380936 (diff) |
fixed crashbug in pl_load which happens with older gcc
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |