]> granicus.if.org Git - graphviz/commit
ccomps gwrite: fix crash when failing to open files
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 23:42:55 +0000 (15:42 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 17:51:26 +0000 (09:51 -0800)
commit6fc8e914672f1f6ae9ec48da0dc9c128c25f0f80
tree719558c4059a9e63f190c5e7d2192ebad68ce90d
parentb8930546e803e84988ebfe8f96bd797bf9af01f8
ccomps gwrite: fix crash when failing to open files

This code looks as if it and the similar code in bcomps.c were copy-pasted from
the same common source. Except the bcomps.c version remembered to exit when
failing to open the output file, whereas the ccomps.c code would go on to crash
when using the null `outf`.
CHANGELOG.md
cmd/tools/ccomps.c