fixed mpd connection with empty mpdpass introduced by #148

This commit is contained in:
Andrew Karpow 2018-01-26 15:06:34 +01:00
parent 8c1115dc63
commit 88b2aa70c8
1 changed files with 2 additions and 1 deletions

View File

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