fix some uninitialized variables (found by valgrind)
git-svn-id: https://svn.musicpd.org/mpd/trunk@3925 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
97e355e362
commit
d7e846bdc2
|
@ -51,6 +51,7 @@ List * makeList(ListFreeDataFunc * freeDataFunc, int strdupKeys) {
|
||||||
|
|
||||||
assert(list!=NULL);
|
assert(list!=NULL);
|
||||||
|
|
||||||
|
list->sorted = 0;
|
||||||
list->firstNode = NULL;
|
list->firstNode = NULL;
|
||||||
list->lastNode = NULL;
|
list->lastNode = NULL;
|
||||||
list->freeDataFunc = freeDataFunc;
|
list->freeDataFunc = freeDataFunc;
|
||||||
|
|
|
@ -131,6 +131,7 @@ void initPlayerData() {
|
||||||
buffered_chunks*sizeof(mpd_sint16));
|
buffered_chunks*sizeof(mpd_sint16));
|
||||||
buffer->times = (float *)(((char *)buffer->metaChunk)+
|
buffer->times = (float *)(((char *)buffer->metaChunk)+
|
||||||
buffered_chunks*sizeof(mpd_sint8));
|
buffered_chunks*sizeof(mpd_sint8));
|
||||||
|
buffer->acceptMetadata = 0;
|
||||||
|
|
||||||
playerData_pd->playerControl.stop = 0;
|
playerData_pd->playerControl.stop = 0;
|
||||||
playerData_pd->playerControl.pause = 0;
|
playerData_pd->playerControl.pause = 0;
|
||||||
|
@ -142,6 +143,7 @@ void initPlayerData() {
|
||||||
playerData_pd->playerControl.queueState = PLAYER_QUEUE_BLANK;
|
playerData_pd->playerControl.queueState = PLAYER_QUEUE_BLANK;
|
||||||
playerData_pd->playerControl.queueLockState = PLAYER_QUEUE_UNLOCKED;
|
playerData_pd->playerControl.queueLockState = PLAYER_QUEUE_UNLOCKED;
|
||||||
playerData_pd->playerControl.seek = 0;
|
playerData_pd->playerControl.seek = 0;
|
||||||
|
playerData_pd->playerControl.closeAudio = 0;
|
||||||
memset(playerData_pd->playerControl.utf8url, 0, MAXPATHLEN+1);
|
memset(playerData_pd->playerControl.utf8url, 0, MAXPATHLEN+1);
|
||||||
memset(playerData_pd->playerControl.erroredUrl, 0, MAXPATHLEN+1);
|
memset(playerData_pd->playerControl.erroredUrl, 0, MAXPATHLEN+1);
|
||||||
memset(playerData_pd->playerControl.currentUrl, 0, MAXPATHLEN+1);
|
memset(playerData_pd->playerControl.currentUrl, 0, MAXPATHLEN+1);
|
||||||
|
|
Loading…
Reference in New Issue