Test buf join with NULL behavior explicitly
diff --git a/tests-clar/core/buffer.c b/tests-clar/core/buffer.c
index 5d9b785..49ab41f 100644
--- a/tests-clar/core/buffer.c
+++ b/tests-clar/core/buffer.c
@@ -457,6 +457,9 @@ void test_core_buffer__8(void)
git_buf_free(&a);
+ check_joinbuf_2(NULL, "", "");
+ check_joinbuf_2(NULL, "a", "a");
+ check_joinbuf_2(NULL, "/a", "/a");
check_joinbuf_2("", "", "");
check_joinbuf_2("", "a", "a");
check_joinbuf_2("", "/a", "/a");