[launchd-changes] [23770] trunk/launchd/src/libvproc.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 7 15:02:37 PST 2009
Revision: 23770
http://trac.macosforge.org/projects/launchd/changeset/23770
Author: dsorresso at apple.com
Date: 2009-01-07 15:02:37 -0800 (Wed, 07 Jan 2009)
Log Message:
-----------
<rdar://problem/6469773> SLServer10A242: SFLSharedPrefsTool crashed three times.
Modified Paths:
--------------
trunk/launchd/src/libvproc.c
Modified: trunk/launchd/src/libvproc.c
===================================================================
--- trunk/launchd/src/libvproc.c 2009-01-06 01:41:08 UTC (rev 23769)
+++ trunk/launchd/src/libvproc.c 2009-01-07 23:02:37 UTC (rev 23770)
@@ -76,7 +76,7 @@
* counts if they're being run under a debugger. Moral of the story: Debug
* from the environment you intend to run in.
*/
- void *_vm_addr = malloc(sizeof(struct vproc_shmem_s));
+ void *_vm_addr = calloc(1, sizeof(struct vproc_shmem_s));
if( !_vm_addr ) {
return;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090107/6dd046b0/attachment.html>
More information about the launchd-changes
mailing list