projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7310f8
)
daemon: No need to check optarg, -p requires argument
author
Peter Meerwald
<p.meerwald@bct-electronic.com>
Mon, 14 Sep 2015 14:54:59 +0000
(16:54 +0200)
committer
Peter Meerwald
<pmeerw@pmeerw.net>
Wed, 16 Sep 2015 06:03:48 +0000
(08:03 +0200)
CID 1323589
getopt() makes sure that we have an argument for -p
remove the broken check for optarg being set
src/daemon/cmdline.c
patch
|
blob
|
history
diff --git
a/src/daemon/cmdline.c
b/src/daemon/cmdline.c
index
a2fb6d5
..
68a02e3
100644
(file)
--- a/
src/daemon/cmdline.c
+++ b/
src/daemon/cmdline.c
@@
-312,7
+312,7
@@
int pa_cmdline_parse(pa_daemon_conf *conf, int argc, char *const argv [], int *d
case 'p':
case ARG_DL_SEARCH_PATH:
pa_xfree(conf->dl_search_path);
- conf->dl_search_path =
*optarg ? pa_xstrdup(optarg) : NULL
;
+ conf->dl_search_path =
pa_xstrdup(optarg)
;
break;
case 'n':