[kaffe] CVS kaffe (guilhem): Fixlet for ifaddrs_bsd

Kaffe CVS cvs-commits at kaffe.org
Mon Dec 26 10:41:31 PST 2005


PatchSet 7057 
Date: 2005/12/26 18:31:35
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixlet for ifaddrs_bsd

Members: 
	ChangeLog:1.4575->1.4576 
	replace/ifaddrs_bsd.c:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4575 kaffe/ChangeLog:1.4576
--- kaffe/ChangeLog:1.4575	Mon Dec 26 18:01:44 2005
+++ kaffe/ChangeLog	Mon Dec 26 18:31:35 2005
@@ -1,5 +1,9 @@
 2005-12-26  Guilhem Lavaux  <guilhem at kaffe.org>
 
+	* replace/ifaddrs_bsd.c: Initialize ifap in case of error.
+
+2005-12-26  Guilhem Lavaux  <guilhem at kaffe.org>
+
 	* kaffe/kaffevm/jit3/machine.h,
 	kaffe/kaffevm/jit3/machine.c
 	(KaffeJIT3_exitWithOOM,
Index: kaffe/replace/ifaddrs_bsd.c
diff -u kaffe/replace/ifaddrs_bsd.c:1.4 kaffe/replace/ifaddrs_bsd.c:1.5
--- kaffe/replace/ifaddrs_bsd.c:1.4	Sun Dec 18 11:09:23 2005
+++ kaffe/replace/ifaddrs_bsd.c	Mon Dec 26 18:31:42 2005
@@ -69,6 +69,8 @@
 
   sockfd = socket(AF_INET, SOCK_DGRAM, 0);
 
+  *ifap = NULL;
+
   memset(&ifc, 0, sizeof(struct ifconf));
   do
     {




More information about the kaffe mailing list