aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerData.c')
-rw-r--r--src/playerData.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/playerData.c b/src/playerData.c
index fee8ac719..2976908f2 100644
--- a/src/playerData.c
+++ b/src/playerData.c
@@ -25,6 +25,7 @@
#include <sys/shm.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
int buffered_before_play;
int BUFFERED_CHUNKS;
@@ -102,7 +103,7 @@ void initPlayerData() {
playerData_pd->playerControl.queueState = PLAYER_QUEUE_BLANK;
playerData_pd->playerControl.queueLockState = PLAYER_QUEUE_UNLOCKED;
playerData_pd->playerControl.seek = 0;
- playerData_pd->playerControl.file[0] = '\0';
+ memset(playerData_pd->playerControl.file,0,MAXPATHLEN);
playerData_pd->playerControl.crossFade = crossfade;
playerData_pd->playerControl.softwareVolume = 100;
playerData_pd->playerControl.totalPlayTime = 0;
@@ -112,7 +113,7 @@ void initPlayerData() {
playerData_pd->decoderControl.state = DECODE_STATE_STOP;
playerData_pd->decoderControl.seek = 0;
playerData_pd->decoderControl.error = DECODE_ERROR_NOERROR;
- playerData_pd->decoderControl.file[0] = '\0';
+ memset(playerData_pd->decoderControl.file,0,MAXPATHLEN);
}
PlayerData * getPlayerData() {