cvs: php-src(PHP_5_2) /ext/pcre php_pcre.c
| From: | Antony Dovgal | Date: | Mon, 29 May 2006 21:31:49 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38486@lists.php.net to get a copy of this message | ||
tony2001 Mon May 29 21:31:49 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/pcre php_pcre.c
Log:
MFH: no need to check it for not-NULL
http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.9.2.3&r2=1.168.2.9.2.4&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.168.2.9.2.3 php-src/ext/pcre/php_pcre.c:1.168.2.9.2.4
--- php-src/ext/pcre/php_pcre.c:1.168.2.9.2.3 Mon May 29 20:26:32 2006
+++ php-src/ext/pcre/php_pcre.c Mon May 29 21:31:49 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.168.2.9.2.3 2006/05/29 20:26:32 tony2001 Exp $ */
+/* $Id: php_pcre.c,v 1.168.2.9.2.4 2006/05/29 21:31:49 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;
}