Commit Graph
4 Commits
Author SHA1 Message Date
Pierce Lopez 634900d270 tests: appease -Wwrite-strings 2019-06-09 12:17:06 -04:00
Pierce Lopez 44605744dc build: fix compiler option -Wwrite-strings
was typod as -Wwrite-string
2019-06-09 10:55:50 -04:00
Pierce Lopez 21c886534f build: add --disable-werror option to configure
to omit -Werror compiler option
2019-06-09 10:53:56 -04:00
Pierce Lopez 868b20ce4e initialize null terminator of new printbuf
It's possible (e.g. by using json_object_from_file() on an empty file)
to get json-c to try to use a printbuf that has never had anything
written to it. Before this change, it could access a string that
should be length zero, but was never initialized, and could
theoretically have an unexpected string.
2016-07-16 00:30:31 -04:00