diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-10 08:47:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:56:53 -0500 |
commit | 640509e6a71556f95c2688a1d62df27da6ff8da1 (patch) | |
tree | 4c638850523640c7bd6a56f8031d4205b5b274c6 /source4/lib | |
parent | 716798c06fe5b0f315ff8b9a46968efcab32e73c (diff) | |
download | samba-640509e6a71556f95c2688a1d62df27da6ff8da1.tar.gz samba-640509e6a71556f95c2688a1d62df27da6ff8da1.tar.bz2 samba-640509e6a71556f95c2688a1d62df27da6ff8da1.zip |
r14131: Fix Coverity bug # 127
(This used to be commit 4d0aa6f525c4756ca6942439468b484e3ca4b2fa)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/talloc/talloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index 577fa4a182..5bb21ee6e6 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -960,11 +960,13 @@ char *talloc_append_string(const void *t, char *orig, const char *append) { char *ret; size_t olen = strlen(orig); - size_t alenz = strlen(append) + 1; + size_t alenz; if (!append) return orig; + alenz = strlen(append) + 1; + ret = talloc_realloc(t, orig, char, olen + alenz); if (!ret) return NULL; |