]> granicus.if.org Git - graphviz/commit
remove some unnecessary branching for malloc/realloc
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Oct 2020 02:50:49 +0000 (19:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 4 Nov 2020 16:02:01 +0000 (08:02 -0800)
commit11e03ae94bc611cdc217fa72784f8245e13b0b9f
tree826d78571620c998115eda56c6c3b400484aaa5d
parentca79090ae785e9bf5ccc092a490e9f2feb7d2e11
remove some unnecessary branching for malloc/realloc

When realloc() is passed NULL as its first parameter, it acts the same as
malloc().
lib/cgraph/write.c
lib/gvc/gvconfig.c
lib/pathplan/route.c
lib/pathplan/shortest.c
lib/pathplan/util.c
plugin/gd/gvtextlayout_gd.c