diff options
-rw-r--r-- | source3/lib/talloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 00f889d682..445ae8f3e9 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -1026,11 +1026,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; |