tony2001                Mon May 29 21:31:30 2006 UTC

  Modified files:              
    /php-src/ext/pcre   php_pcre.c 
  Log:
  no need to check it for not-NULL (as was pointed by Nuno)
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.182&r2=1.183&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.182 php-src/ext/pcre/php_pcre.c:1.183
--- php-src/ext/pcre/php_pcre.c:1.182   Mon May 29 20:26:12 2006
+++ php-src/ext/pcre/php_pcre.c Mon May 29 21:31:30 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_pcre.c,v 1.182 2006/05/29 20:26:12 tony2001 Exp $ */
+/* $Id: php_pcre.c,v 1.183 2006/05/29 21:31:30 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1115,10 +1115,8 @@
                        }
                } else {
                        pcre_handle_exec_error(count TSRMLS_CC);
-                       if (result) {
-                               efree(result);
-                               result = NULL;
-                       }
+                       efree(result);
+                       result = NULL;
                        break;
                }
                        

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to