From f99afb5dff00534df6cf8f4d9de5d274c7818eac Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 24 Feb 2008 23:32:36 +0000 Subject: lpd: new applet by Vladimir Dronnikov --- libbb/read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbb/read.c') diff --git a/libbb/read.c b/libbb/read.c index 640293b70..4ad41d589 100644 --- a/libbb/read.c +++ b/libbb/read.c @@ -161,8 +161,7 @@ char *xmalloc_reads(int fd, char *buf) } /* nonblock_safe_read() because we are used by e.g. shells */ if (nonblock_safe_read(fd, p, 1) != 1) { /* EOF/error */ - if (p == buf) { - /* we read nothing [and buf was NULL initially] */ + if (p == buf) { /* we read nothing */ free(buf); return NULL; } -- cgit v1.2.3