]> granicus.if.org Git - graphviz/commit
replace NULL-hinted agxbuf usage with zero initialization
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 00:24:05 +0000 (17:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 8 Aug 2022 14:59:46 +0000 (07:59 -0700)
commitdb5dc6497e86b886a41d52ea13f0598ecaa9c296
tree2dc3dd6d3babf2f7825456497cf53fe301cccc62
parent04a248348798a4a32fc9ac7e5d860a84ab5ee49f
replace NULL-hinted agxbuf usage with zero initialization

This leads to easy to read code and fewer things for the caller to think about.
I think this should probably become the default pattern for agxbuf usage for the
cases where the data you are printing is unpredictable or you are unsure.
14 files changed:
cmd/gvmap/make_map.c
cmd/smyrna/gui/menucallbacks.c
cmd/tools/graphml2gv.c
cmd/tools/gxl2gv.c
lib/common/htmllex.c
lib/common/labels.c
lib/common/psusershape.c
lib/common/utils.c
lib/gvc/gvplugin.c
lib/gvpr/actions.c
lib/gvpr/compile.c
lib/gvpr/gvpr.c
lib/gvpr/parse.c
plugin/core/gvrender_core_dot.c