]> granicus.if.org Git - graphviz/commit
Close output file descriptor only after done writing
authorMark Hansen <markhansen@google.com>
Tue, 2 Mar 2021 08:14:13 +0000 (19:14 +1100)
committerMark Hansen <markhansen@google.com>
Tue, 2 Mar 2021 08:14:13 +0000 (19:14 +1100)
commitfa341dfafa8d757dbd5f9f12e9618b0b56ab26f3
tree3af377a9f87e792f8ade1698afbe46df7319231e
parentae9786dbce1a176260d4344b527bbe6bd3ae5901
Close output file descriptor only after done writing

Previously we would close the output as soon as we wrote a single line.

This didn't account for continuation lines, where $1 == "".

The subsequent printfs would be to a closed file.

Fixes #1965
doc/infosrc/brewer.awk