pajoye Sat Apr 25 14:53:50 2009 UTC
Modified files:
/php-src/ext/imap php_imap.c
Log:
- silent warning, NULL is not 0
http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.274&r2=1.275&diff_format=u
Index: php-src/ext/imap/php_imap.c
diff -u php-src/ext/imap/php_imap.c:1.274 php-src/ext/imap/php_imap.c:1.275
--- php-src/ext/imap/php_imap.c:1.274 Sat Apr 25 11:21:41 2009
+++ php-src/ext/imap/php_imap.c Sat Apr 25 14:53:50 2009
@@ -26,7 +26,7 @@
| PHP 4.0 updates: Zeev Suraski <[email protected]> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_imap.c,v 1.274 2009/04/25 11:21:41 pajoye Exp $ */
+/* $Id: php_imap.c,v 1.275 2009/04/25 14:53:50 pajoye Exp $ */
#define IMAP41
@@ -1191,7 +1191,7 @@
zval *streamind;
char *mailbox;
int mailbox_len;
- long options = NULL, retries = NULL;
+ long options = 0, retries = 0;
pils *imap_le_struct;
MAILSTREAM *imap_stream;
long flags=NIL;
@@ -1561,7 +1561,7 @@
pils *imap_le_struct;
int msgindex, argc = ZEND_NUM_ARGS();
char *body;
- unsigned long body_len;
+ unsigned long body_len = 0;
if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &streamind, &msgno,
&flags) == FAILURE) {
return;
@@ -2845,7 +2845,7 @@
zval *streamind;
char *sequence, *flag;
int sequence_len, flag_len;
- long flags = NULL;
+ long flags = 0;
pils *imap_le_struct;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|l",
&streamind, &sequence, &sequence_len, &flag, &flag_len, &flags) == FAILURE) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php