diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c index 0179f9865..156e02197 100644 --- a/src/command.c +++ b/src/command.c @@ -237,13 +237,13 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength, playPlaylistIfPlayerStopped(); switch(getPlayerState()) { case PLAYER_STATE_STOP: - state = strdup(COMMAND_STOP); + state = COMMAND_STOP; break; case PLAYER_STATE_PAUSE: - state = strdup(COMMAND_PAUSE); + state = COMMAND_PAUSE; break; case PLAYER_STATE_PLAY: - state = strdup(COMMAND_PLAY); + state = COMMAND_PLAY; break; } @@ -277,8 +277,6 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength, myfprintf(fp,"%s: %s\n",COMMAND_STATUS_ERROR,getPlayerErrorStr()); } - free(state); - return 0; } |