aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 13:57:01 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 13:57:01 +0200
commit95a667df36f595d7bde3d3cb80b85ece78872af5 (patch)
tree6daeb0ed97e82ec78a28484afb90f887a2088c3f
parentac28dff277b3c11fda7ecd08d317a55c1f162d4f (diff)
downloadpsmq-95a667df36f595d7bde3d3cb80b85ece78872af5.tar.gz
psmq-95a667df36f595d7bde3d3cb80b85ece78872af5.tar.bz2
psmq-95a667df36f595d7bde3d3cb80b85ece78872af5.zip
tst/psmqd-startup.c: fix invalid NULL in argv
There should not be a NULL in the middle of argv, that not possible, and in our test this NULL is passed to strlen(), and strlen() does not accept NULL. I wonder how come none of the sanitizers cought that. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/psmqd-startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tst/psmqd-startup.c b/tst/psmqd-startup.c
index dea06ee..433c9e3 100644
--- a/tst/psmqd-startup.c
+++ b/tst/psmqd-startup.c
@@ -127,7 +127,7 @@ static int psmqt_run_default(void)
time_t start; /* starting point of waiting for confirmation */
struct main_args *args; /* allocated args to create psmqd_main() with */
struct timespec tp; /* time to sleep between psmqd_main() run check*/
- const char *argv[] = { "psmqd", "-b", NULL, "-l6", "-p./psmqd.log",
+ const char *argv[] = { "psmqd", "-b", "-l6", "-p./psmqd.log",
"-m10", NULL };
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/