Thread (24 messages) flat view 24 messages, 4 authors, 2016-06-15

fixup for 05/10: plug leak

From: René Scharfe <hidden>
Date: 2016-06-15 23:02:04
Subsystem: the rest · Maintainer: Linus Torvalds

Noticed-by: Jeff King [off-list ref]
---
 abspath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/abspath.c b/abspath.c
index 16e7fa2..6aa328f 100644
--- a/abspath.c
+++ b/abspath.c
@@ -58,7 +58,7 @@ static const char *real_path_internal(const char *path, int die_on_error)
 			goto error_out;
 	}
 
-	strbuf_init(&sb, 0);
+	strbuf_reset(&sb);
 	strbuf_addstr(&sb, path);
 
 	while (depth--) {
-- 
2.0.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help