cvs: php4 /ext/ircg ircg.c
| From: | Sascha Schumann | Date: | Tue, 14 Aug 2001 08:58:29 +0000 |
| Subject: | cvs: php4 /ext/ircg ircg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6827@lists.php.net to get a copy of this message | ||
sas Tue Aug 14 04:58:29 2001 EDT
Modified files:
/php4/ext/ircg ircg.c
Log:
defer initialization of hash
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.103 php4/ext/ircg/ircg.c:1.104
--- php4/ext/ircg/ircg.c:1.103 Mon Aug 13 18:29:57 2001
+++ php4/ext/ircg/ircg.c Tue Aug 14 04:58:28 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ircg.c,v 1.103 2001/08/13 22:29:57 sas Exp $ */
+/* $Id: ircg.c,v 1.104 2001/08/14 08:58:28 sas Exp $ */
#include <time.h>
@@ -1601,7 +1601,6 @@
}
}
- zend_hash_init(&conn->ctcp_msgs, 10, NULL, ctcp_msgs_dtor, 1);
conn->fmt_msgs = fmt_msgs;
if (irc_connect(username, register_hooks,
conn, server, port, &conn->conn)) {
@@ -1609,6 +1608,7 @@
RETURN_FALSE;
}
irc_connects++;
+ zend_hash_init(&conn->ctcp_msgs, 10, NULL, ctcp_msgs_dtor, 1);
if (p5 && Z_TYPE_PP(p5) == IS_ARRAY) {
ircg_copy_ctcp_msgs(p5, conn);
}