cvs: php4 /ext/standard dns.c

From: Date: Thu, 29 Aug 2002 15:58:33 +0000
Subject: cvs: php4 /ext/standard dns.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13759@lists.php.net to get a copy of this message
iliaa Thu Aug 29 11:58:33 2002 EDT Modified files: /php4/ext/standard dns.c Log: Fixed the \0 check in previous patch. Index: php4/ext/standard/dns.c diff -u php4/ext/standard/dns.c:1.41 php4/ext/standard/dns.c:1.42 --- php4/ext/standard/dns.c:1.41 Thu Aug 29 11:44:00 2002 +++ php4/ext/standard/dns.c Thu Aug 29 11:58:33 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dns.c,v 1.41 2002/08/29 15:44:00 iliaa Exp $ */ +/* $Id: dns.c,v 1.42 2002/08/29 15:58:33 iliaa Exp $ */ /* {{{ includes */ @@ -128,7 +128,7 @@ hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); #endif - if (!hp || hp->h_name == NULL || hp->h_name == '\0') { + if (!hp || hp->h_name == NULL || hp->h_name[0] == '\0') { return estrdup(ip); }

« previous php.cvs (#13759) next »