1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-25 10:30:26 +00:00

Merge pull request #14 from notandy/master

fixed mpd connection with empty mpdpass introduced by #148
This commit is contained in:
Daniel Schregenberger 2018-01-26 15:42:49 +01:00 committed by GitHub
commit 7a31b441b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,7 @@ int main(int argc, char **argv)
run_as_user = strdup(optarg); run_as_user = strdup(optarg);
break; break;
case 'm': case 'm':
if (strlen(optarg) > 0)
mpd.password = strdup(optarg); mpd.password = strdup(optarg);
break; break;
case 'v': case 'v':