Commit 9ae4ad2dafd918b95dc976bed97604a985a2b4dd

Jacques Germishuys 2015-01-20T23:26:55

Treat a NULL string as if it's empty

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pool.c b/src/pool.c
index a5dfa0f..7350c04 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -225,7 +225,7 @@ char *git_pool_strcat(git_pool *pool, const char *a, const char *b)
 	void *ptr;
 	size_t len_a, len_b;
 
-	assert(pool && a && b && pool->item_size == sizeof(char));
+	assert(pool && pool->item_size == sizeof(char));
 
 	len_a = a ? strlen(a) : 0;
 	len_b = b ? strlen(b) : 0;