mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 08:00:07 +00:00
Treat a NULL string as if it's empty
This commit is contained in:
parent
526182d28c
commit
9ae4ad2daf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user