From 659496081ef3517f09689678c070ad1967bd394e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20B=C3=B6hm?= Date: Wed, 6 Oct 2021 13:37:39 +0000 Subject: [PATCH] =?UTF-8?q?tweak:=20add=20missing=20return=20to=20fix=20do?= =?UTF-8?q?uble=20close(=E2=80=A6)=20on=20file=20descriptor=E2=80=A6=20?= =?UTF-8?q?=E2=80=A6=20and=20avoid=20printing=20conflicting=20messages.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys/src/cmd/tweak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/cmd/tweak.c b/sys/src/cmd/tweak.c index 0044686f9..2e62ac451 100644 --- a/sys/src/cmd/tweak.c +++ b/sys/src/cmd/tweak.c @@ -1731,6 +1731,7 @@ twrite(Thing *t) if(writeimage(fd, t->b, 0)<0 || (t->s && writesubfont(fd, t->s)<0)){ close(fd); mesg("can't write %s: %r", t->name); + return; } t->mod = 0; close(fd);