]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
talloc: Add a comment explaining talloc_asprintf_addbuf()
authorVolker Lendecke <vl@samba.org>
Fri, 24 Jan 2025 07:30:56 +0000 (08:30 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Feb 2025 00:07:30 +0000 (00:07 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/talloc/talloc.c

index 3a93a82e456c5616ffea6c9d9dc20facd1072152..727abe77a24620ac18d4afd3f7759c6e6ee94b22 100644 (file)
@@ -2750,6 +2750,10 @@ _PUBLIC_ char *talloc_asprintf_append_buffer(char *s, const char *fmt, ...)
        return s;
 }
 
+/*
+ * Function to make string-building simple by handling intermediate
+ * realloc failures. See for example commit a37ea9d750e1.
+ */
 _PUBLIC_ void talloc_asprintf_addbuf(char **ps, const char *fmt, ...)
 {
        va_list ap;