]> granicus.if.org Git - graphviz/commit
gvpr: simplify 'freeOpts' by passing by value
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Jul 2022 15:30:52 +0000 (08:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 4 Jul 2022 22:19:11 +0000 (15:19 -0700)
commit0ed70d5d1927628033b92a029941cfb23e141c57
tree6811f5f5785f77dc2175040ece62c727e2546081
parent156567dc18bcea1d3ecece24d1627e22fa6634ce
gvpr: simplify 'freeOpts' by passing by value

This also removes the conditional on `argc` in this function. The contained loop
is a no-op when `argc` is 0 and in this case `argv` is NULL, which it is well
defined to `free`.
lib/gvpr/gvpr.c