diff options
-rw-r--r-- | dstring.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -43,6 +43,7 @@ char *dstralloc(size_t capacity) { header->capacity = capacity; header->length = 0; + header->data[0] = '\0'; return header->data; } |
index : bfs.git | ||
Breadth-first version of find | Tavian Barnes <tavianator@tavianator.com> |
summaryrefslogtreecommitdiffstats |
-rw-r--r-- | dstring.c | 1 |
@@ -43,6 +43,7 @@ char *dstralloc(size_t capacity) { header->capacity = capacity; header->length = 0; + header->data[0] = '\0'; return header->data; } |