Files
asterisk/main
Luigi Rizzo f6c706c71b make sure the argument to ast_malloc() is > 0.
Long explaination:

The behaviour of the underlying malloc(0) differs depending on the
operating system.  Some return NULL (SysV behaviour); some still
allocate a small chunk of memory and return a valid pointer (e.g.
traditional BSD); some (e.g. FreeBSD 6.x) return a non-null pointer
that causes a memory fault if used, even just for reading.

Given the above variety, better never call malloc(0).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 18:11:58 +00:00
..
2006-08-29 20:50:36 +00:00
2006-10-13 23:03:36 +00:00
2006-11-30 18:49:59 +00:00
2006-11-30 20:34:23 +00:00
2006-10-02 17:26:34 +00:00
2006-11-11 02:12:27 +00:00
2006-11-30 20:34:23 +00:00
2006-12-11 05:38:57 +00:00
2006-11-01 23:04:14 +00:00