Merge pull request #803 from chme/mpdplay

[mpd] Fix initial value of 'songpos' in play command
This commit is contained in:
Christian Meffert 2019-09-08 14:39:33 +02:00 committed by GitHub
commit 0a593463b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1363,7 +1363,7 @@ mpd_command_play(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, s
struct db_queue_item *queue_item;
int ret;
songpos = 0;
songpos = -1;
if (argc > 1)
{
ret = safe_atoi32(argv[1], &songpos);