cvs: php4(PHP_4_3) /ext/hyperwave hg_comm.c
| From: | Sascha Schumann | Date: | Mon, 16 Jun 2003 19:05:36 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/hyperwave hg_comm.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21798@lists.php.net to get a copy of this message | ||
sas Mon Jun 16 15:05:36 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/hyperwave hg_comm.c
Log:
Remove cast which hides a bug in the code.
Index: php4/ext/hyperwave/hg_comm.c
diff -u php4/ext/hyperwave/hg_comm.c:1.52.8.3 php4/ext/hyperwave/hg_comm.c:1.52.8.4
--- php4/ext/hyperwave/hg_comm.c:1.52.8.3 Sun Jun 15 23:07:07 2003
+++ php4/ext/hyperwave/hg_comm.c Mon Jun 16 15:05:35 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hg_comm.c,v 1.52.8.3 2003/06/16 03:07:07 iliaa Exp $ */
+/* $Id: hg_comm.c,v 1.52.8.4 2003/06/16 19:05:35 sas Exp $ */
/* #define HW_DEBUG */
@@ -654,7 +654,7 @@
scriptname = emalloc(5*sizeof(char *));
if (zend_hash_find(&EG(symbol_table), "SCRIPT_NAME",
sizeof("SCRIPT_NAME"), (void **) &script_name)==FAILURE)
for(i=0; i<5; i++)
- scriptname[i] = (char *) &emptystring;
+ scriptname[i] = &emptystring;
else {
convert_to_string_ex(script_name);
for(i=0; i<5; i++)