| line |
true |
false |
branch |
|
13
|
0 |
57 |
GIT_ASSERT_ARG(buf); |
|
15
|
1 |
56 |
if (buf->reserved > 0) |
|
26
|
0 |
57 |
GIT_ASSERT_ARG(out); |
|
27
|
0 |
57 |
GIT_ASSERT_ARG(buf); |
|
29
|
0 |
57 |
if (git_buf_sanitize(buf) < 0) |
|
45
|
0 |
52 |
GIT_ASSERT_ARG(out); |
|
46
|
0 |
52 |
GIT_ASSERT_ARG(str); |
|
61
|
0 |
63 |
if (!buf) |
|
64
|
59 |
4 |
if (buf->ptr != git_str__initstr) |
|
77
|
0 |
5 |
if (buffer->reserved >= target_size) |
|
80
|
1 |
4 |
if (buffer->ptr == git_str__initstr) |
|
85
|
0 |
5 |
if (!newptr) |
|
97
|
0 |
4 |
GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, datalen, 1); |
|
|
0 |
4 |
GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, datalen, 1); |
|
99
|
0 |
4 |
if (git_buf_grow(buffer, alloclen) < 0) |