home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13116 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  843 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!jz1j+
  2. From: jz1j+@andrew.cmu.edu (James D. Zelenka)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
  5. Message-ID: <wfH=M4y00hYzAC54Zt@andrew.cmu.edu>
  6. Date: 7 Jan 93 13:00:20 GMT
  7. Article-I.D.: andrew.wfH=M4y00hYzAC54Zt
  8. References: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
  9. Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  10. Lines: 10
  11. In-Reply-To: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
  12.  
  13. Yeah, I ran into this too when I ported zephyr to AIX. There's an
  14. obscure fix for this.
  15.  
  16. If you call:
  17.     mallopt(1,0);
  18.  
  19. Somewhere in your program, malloc(0) will no longer return NULL.
  20.  
  21. -Jim Zelenka
  22. jz1j@andrew.cmu.edu
  23.