Browse Source

Merge pull request #239 from ploxiln/printbuf_empty

initialize null terminator of new printbuf
tags/json-c-0.13-20171207
Eric Haszlakiewicz GitHub 9 years ago
parent
commit
b366750e11
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      printbuf.c

+ 1
- 0
printbuf.c View File

@@ -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;
} }




Loading…
Cancel
Save