Re: [dm-devel] [PATCH 4/9] multipathd: don't call strlen on NULL variables

2017-04-18 Thread Martin Wilck
On Fri, 2017-04-07 at 01:16 -0500, Benjamin Marzinski wrote: > strlen has undefined results when passed a NULL variable, so don't do > it. > > Signed-off-by: Benjamin Marzinski > --- This is certainly correct. Yet I have two remarks:  1) There are many more calls to strlen() in the multipath-to

[dm-devel] [PATCH 4/9] multipathd: don't call strlen on NULL variables

2017-04-06 Thread Benjamin Marzinski
strlen has undefined results when passed a NULL variable, so don't do it. Signed-off-by: Benjamin Marzinski --- multipathd/main.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 283d81d..f671d58 100644 --- a/multipathd/main