diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-01-19 22:49:10 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-01-22 11:39:24 +0100 |
commit | 920db6d3935c86aff1b4fd0096ce6b5e3605d20d (patch) | |
tree | 52a5bf033372732018de77d7bd243cb3304ee981 /libc/stdlib/unix_grantpt.c | |
parent | 78b154a95b507c205241dd883396952e0dfbede7 (diff) |
libc: Avoid redundant setting of ENOMEM
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdlib/unix_grantpt.c')
-rw-r--r-- | libc/stdlib/unix_grantpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index 5dbb7f52d..66c18c0ed 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -68,7 +68,7 @@ pts_name (int fd, char **pts, size_t buf_len) if (! new_buf) { rv = -1; - errno = ENOMEM; + /* __set_errno(ENOMEM); */ break; } buf = new_buf; |