[enet-cvs] CVS: enet unix.c,1.4,1.5

Lee Salzman enet-discuss@lists.puremagic.com
Mon, 28 Oct 2002 16:45:31 -0700


Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv22960

Modified Files:
	unix.c 
Log Message:
Oops, minor little fix to enet_address_get_host to ensure hostEntry is NULL on failure.



Index: unix.c
===================================================================
RCS file: /home/enet/cvsroot/enet/unix.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- unix.c	2002/10/28 19:05:59	1.4
+++ unix.c	2002/10/28 23:45:28	1.5
@@ -87,7 +87,7 @@
 enet_address_get_host (const ENetAddress * address, char * name, size_t nameLength)
 {
     struct in_addr in;
-    struct hostent * hostEntry;
+    struct hostent * hostEntry = NULL;
 #ifdef HAS_GETHOSTBYADDR_R
     struct hostent hostData;
     char buffer [2048];