blind

suckless command-line video editing utility
git clone git://git.suckless.org/blind
Log | Files | Refs | README | LICENSE

commit f5c5a803b516c2246339cec5e576f7e227729554
parent d8aa45da86d1128149fd7ab6ac3725bf8e88a1b1
Author: Mattias Andrée <maandree@kth.se>
Date:   Mon,  4 Dec 2017 22:37:14 +0100

Fix typo bug found by Michael McConville

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
src/util/efunc.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/efunc.h b/src/util/efunc.h @@ -69,7 +69,7 @@ ewrite(int fd, void *buf, size_t n, const char *fname) { ssize_t ret = write(fd, buf, n); if (ret < 0) { - if (errno = ECONNRESET) + if (errno == ECONNRESET) raise(SIGPIPE); eprintf("write %s:", fname); }