We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3622f52 commit a72ed29Copy full SHA for a72ed29
code/logic/cstring.c
@@ -344,6 +344,7 @@ fossil_io_cstring_stream* fossil_io_cstring_stream_create(size_t initial_size) {
344
if (stream) {
345
stream->buffer = (char*)malloc(initial_size);
346
if (stream->buffer) {
347
+ stream->buffer[0] = '\0';
348
stream->length = 0;
349
stream->capacity = initial_size;
350
} else {
0 commit comments