diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-24 23:32:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-24 23:32:36 +0000 |
commit | f99afb5dff00534df6cf8f4d9de5d274c7818eac (patch) | |
tree | 72eb7ab8b462f2adf8adc8d7ffeef3cf9c1135cc /libbb | |
parent | a2f47358eb5479d65510b0eb506d52435ca26c21 (diff) | |
download | busybox-w32-f99afb5dff00534df6cf8f4d9de5d274c7818eac.tar.gz busybox-w32-f99afb5dff00534df6cf8f4d9de5d274c7818eac.tar.bz2 busybox-w32-f99afb5dff00534df6cf8f4d9de5d274c7818eac.zip |
lpd: new applet by Vladimir Dronnikov <dronnikov AT gmail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/read.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
161 | } | 161 | } |
162 | /* nonblock_safe_read() because we are used by e.g. shells */ | 162 | /* nonblock_safe_read() because we are used by e.g. shells */ |
163 | if (nonblock_safe_read(fd, p, 1) != 1) { /* EOF/error */ | 163 | if (nonblock_safe_read(fd, p, 1) != 1) { /* EOF/error */ |
164 | if (p == buf) { | 164 | if (p == buf) { /* we read nothing */ |
165 | /* we read nothing [and buf was NULL initially] */ | ||
166 | free(buf); | 165 | free(buf); |
167 | return NULL; | 166 | return NULL; |
168 | } | 167 | } |