index
:
cbs
master
Single-header C build system
Thomas Voss
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
cbs.h
2
1 files changed, 2 insertions, 0 deletions
diff --git a/cbs.h b/cbs.h
index a6cfb73..4018b64 100644
--- a/
cbs.h
+++ b/
cbs.h
@@ -188,6 +188,8 @@ void
strszero(struct strs *xs)
{
xs->len = 0;
+ if (xs->cap > 0)
+ xs->buf[0] = NULL;
}
void