Merge pull request #239 from ploxiln/printbuf_empty
initialize null terminator of new printbuf
This commit is contained in:
commit
b366750e11
1 file changed
+1
@@ -42,6 +42,7 @@ struct printbuf* printbuf_new(void)
|
|||||||
free(p);
|
free(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
p->buf[0]= '\0';
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user