param: Add null checks for upcoming str_list_make changes
authorGarming Sam <garming@catalyst.net.nz>
Thu, 13 Mar 2014 20:30:52 +0000 (09:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jul 2014 21:32:35 +0000 (23:32 +0200)
commitcafd60732b833caba1e99afbd20be5339be3b4dc
treebcd18fdf2e7b6abec8ab1d52c28753e0d966f8a3
parent72651f92f0d35c026978e765cd9f8e0867c44af3
param: Add null checks for upcoming str_list_make changes

In changing str_list_make to str_list_make_v3, the list can be NULL.
These are some additional checks to try to avoid any problems.

Where lists are dealt with, they typically check both if the list is
empty or the list is NULL.

Change-Id: I9012c31dbd9832ce877728bcb3346616ba64c4c5
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
lib/util/util_runcmd.c
lib/util/util_strlist.c