Make guestfs_int_count_strings a bit more robust and usefull with NULL
initialized variables.
---
src/utils.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/utils.c b/src/utils.c
index f099a22..3639e92 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -55,6 +55,9 @@ guestfs_int_count_strings (char *const *argv)
{
size_t r;
+ if (argv == NULL)
+ return 0;
+
for (r = 0; argv[r]; ++r)
;
--
2.5.5