projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1115d
)
fixed mpd connection with empty mpdpass introduced by #148
author
Andrew Karpow
<andy@ndyk.de>
Fri, 26 Jan 2018 14:06:34 +0000
(15:06 +0100)
committer
Andrew Karpow
<andy@ndyk.de>
Fri, 26 Jan 2018 14:06:34 +0000
(15:06 +0100)
src/ympd.c
patch
|
blob
|
history
diff --git
a/src/ympd.c
b/src/ympd.c
index
00b82ee
..
a699b28
100644
(file)
--- a/
src/ympd.c
+++ b/
src/ympd.c
@@
-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"