[Libguestfs] [PATCH] utils: make guestfs_int_count_strings return 0 on NULL input

Maros Zatko mzatko at redhat.com
Tue May 24 16:20:42 UTC 2016


This miniature patch makes function guestfs_int_count_strings accept NULL input
and return 0 signalling that it is empty list. It makes it more usefull with
NULL initialized variables and a tiny bit more robust.

Maros Zatko (1):
  utils: make guestfs_int_count_strings return 0 on NULL input

 src/utils.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.5.5




More information about the Libguestfs mailing list