]> granicus.if.org Git - php/commitdiff
- silent warning, NULL is not 0
authorPierre Joye <pajoye@php.net>
Sat, 25 Apr 2009 14:53:50 +0000 (14:53 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 25 Apr 2009 14:53:50 +0000 (14:53 +0000)
ext/imap/php_imap.c

index 7c57dfed16affec9bfd9e690eacc5a8b9af34a08..213e2b8f52ef00718b1dc8f544c4ea9d2a674f57 100644 (file)
@@ -1191,7 +1191,7 @@ PHP_FUNCTION(imap_reopen)
        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 @@ PHP_FUNCTION(imap_body)
        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 @@ PHP_FUNCTION(imap_setflag_full)
        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) {