From cadbb2b3150e51356d4ae3edf6d07108d9e0dfbd Mon Sep 17 00:00:00 2001
From: Peter Meerwald
Date: Mon, 14 Sep 2015 16:54:59 +0200
Subject: [PATCH] daemon: No need to check optarg, -p requires argument
CID 1323589
getopt() makes sure that we have an argument for -p
remove the broken check for optarg being set
---
src/daemon/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/cmdline.c b/src/daemon/cmdline.c
index a2fb6d544..68a02e30e 100644
--- 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':