Simplify cases where a strbuf_reset is immediately followed by a
strbuf_add by using strbuf_set operations.

Signed-off-by: Jeremiah Mahler <>
 vcs-svn/svndump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vcs-svn/svndump.c b/vcs-svn/svndump.c
index 31d1d83..7fbf5d8 100644
--- a/vcs-svn/svndump.c
+++ b/vcs-svn/svndump.c
@@ -352,8 +352,7 @@ void svndump_read(const char *url, const char *local_ref, 
const char *notes_ref)
                case sizeof("UUID"):
                        if (constcmp(t, "UUID"))
-                       strbuf_reset(&dump_ctx.uuid);
-                       strbuf_addstr(&dump_ctx.uuid, val);
+                       strbuf_setstr(&dump_ctx.uuid, val);
                case sizeof("Revision-number"):
                        if (constcmp(t, "Revision-number"))

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to