diff --git a/runtime/runtime.c b/runtime/runtime.c index a2f15d05f..6710bd94a 100644 --- a/runtime/runtime.c +++ b/runtime/runtime.c @@ -402,6 +402,7 @@ static StringBuf stringBuf; static void createStringBuf () { stringBuf.contents = (char*) malloc (STRINGBUF_INIT); + memset(stringBuf.contents, 0, STRINGBUF_INIT); stringBuf.ptr = 0; stringBuf.len = STRINGBUF_INIT; }