Skip to content

Commit b2ab4c2

Browse files
committed
io BUGFIX typo
1 parent ce777eb commit b2ab4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ nc_write(struct nc_session *session, const void *buf, uint32_t count)
578578
case NC_TI_UNIX:
579579
fd = session->ti_type == NC_TI_FD ? session->ti.fd.out : session->ti.unixsock.sock;
580580
c = write(fd, (char *)(buf + written), count - written);
581-
if ((c < 0) && ((errno == EAGAIN) || (errno = EWOULDBLOCK))) {
581+
if ((c < 0) && ((errno == EAGAIN) || (errno == EWOULDBLOCK))) {
582582
c = 0;
583583
} else if ((c < 0) && (errno == EINTR)) {
584584
c = 0;

0 commit comments

Comments
 (0)