home *** CD-ROM | disk | FTP | other *** search
- 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+
- From: jz1j+@andrew.cmu.edu (James D. Zelenka)
- Newsgroups: comp.unix.aix
- Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
- Message-ID: <wfH=M4y00hYzAC54Zt@andrew.cmu.edu>
- Date: 7 Jan 93 13:00:20 GMT
- Article-I.D.: andrew.wfH=M4y00hYzAC54Zt
- References: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
- Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
- Lines: 10
- In-Reply-To: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
-
- Yeah, I ran into this too when I ported zephyr to AIX. There's an
- obscure fix for this.
-
- If you call:
- mallopt(1,0);
-
- Somewhere in your program, malloc(0) will no longer return NULL.
-
- -Jim Zelenka
- jz1j@andrew.cmu.edu
-