Re: valloc()?
Bruno Haible <[email protected]> Thu, 3 Mar 2005 21:36:11 +0100
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Message-ID | <[email protected]> |
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. Bruno