OSDN Git Service

libc: Avoid redundant setting of ENOMEM
[uclinux-h8/uClibc.git] / libc / stdlib / unix_grantpt.c
index 5dbb7f5..66c18c0 100644 (file)
@@ -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;