mirror of
https://github.com/json-c/json-c.git
synced 2026-03-22 06:29:06 +08:00
Merge pull request #239 from ploxiln/printbuf_empty
initialize null terminator of new printbuf
This commit is contained in:
@@ -42,6 +42,7 @@ struct printbuf* printbuf_new(void)
|
||||
free(p);
|
||||
return NULL;
|
||||
}
|
||||
p->buf[0]= '\0';
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user