summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-07 18:52:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:02 -0500
commit71272fc441d7930f7ae810ee3c8f5a58385cb55c (patch)
treee82a581fd1f46c6b89856b9d097184d6ee9c7bbc /source3/lib/util_str.c
parenta31c931804296a7a9ebff0a92f674492c252700e (diff)
downloadsamba-71272fc441d7930f7ae810ee3c8f5a58385cb55c.tar.gz
samba-71272fc441d7930f7ae810ee3c8f5a58385cb55c.tar.bz2
samba-71272fc441d7930f7ae810ee3c8f5a58385cb55c.zip
r13975: Re-fix Coverity #156 - I had left the hidden arg. inconsistent
between Realloc and realloc_array. Jeremy. (This used to be commit 841c9b1847ae12656b827e3d35b8bf0c3f68b8b4)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index f1ae9a472a..446a4a00a1 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1779,8 +1779,9 @@ BOOL str_list_copy(char ***dest, const char **src)
DEBUG(0,("str_list_copy: Unable to re-allocate memory"));
str_list_free(&list);
return False;
- } else
+ } else {
list = rlist;
+ }
memset (&list[num], 0, ((sizeof(char **)) * (S_LIST_ABS +1)));
}