Re: valloc()?
Derek Price <[email protected]> Thu, 03 Mar 2005 15:54:08 -0500
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Organization | Get CVS Support from Ximbiot <http://ximbiot.com>! |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruno Haible wrote: | Derek Price wrote: | |> It could print the error message with error (0, errno, ...) and |> then return NULL. The caller could then decide if that error |> should be fatal or not, as I presume they might wish to if they |> are calling pagealign_alloc() as opposed to pagealign_xalloc(). | | | Maybe... but it makes things more complicated for the caller. And | if this error occurs, it's a problem in the environment, not in the | program's data; and since it occurs upon the first call to | pagealign_alloc, you can assume that the program does not have | sensitive data to save. Good point. I'll concede that. Regards, Derek -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCJ3lwLD1OTBfyMaQRAks/AJwMOHm3oSDKrg/lvQ13Y6Urwu4C+QCg6No/ a6xUjZzVmVfqLKmIGam5Qso= =MgCn -----END PGP SIGNATURE-----