mirror of
https://github.com/SuperBFG7/ympd
synced 2025-08-30 01:07:58 +00:00
fixed mpd connection with empty mpdpass introduced by #148
This commit is contained in:
@@ -113,7 +113,8 @@ int main(int argc, char **argv)
|
||||
run_as_user = strdup(optarg);
|
||||
break;
|
||||
case 'm':
|
||||
mpd.password = strdup(optarg);
|
||||
if (strlen(optarg) > 0)
|
||||
mpd.password = strdup(optarg);
|
||||
break;
|
||||
case 'v':
|
||||
fprintf(stdout, "ympd %d.%d.%d\n"
|
||||
|
Reference in New Issue
Block a user