bug in newlib-1.8.0 tmpnam.c

Joel Sherrill joel@OARcorp.com
Sun Oct 5 10:03:00 GMT 1997


Minor bug on an error case in tmpnam.c:

Sun Oct  5 12:06:38 CDT 1997  Joel Sherrill <joel@oarcorp.com>.

        * libc/stdlib/tmpnam.c (worker): set char to '\0' not '0'.

*** /tmp/tmpnam.c       Sun Oct  5 12:05:59 1997
--- tmpnam.c    Sun Oct  5 12:05:25 1997
***************
*** 124,130 ****
        {
          if (ptr->_errno == ENOSYS)
            {
!             result[0] = '0';
              return 0;
            }
          break;
--- 124,130 ----
        {
          if (ptr->_errno == ENOSYS)
            {
!             result[0] = '\0';
              return 0;
            }
          break;





More information about the Newlib mailing list