summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2010-07-05 12:03:08 +0000
committerDmitry Stogov <dmitry@php.net>2010-07-05 12:03:08 +0000
commitb65f1dae41557346ee250342e248f3dd5f68c4e9 (patch)
treef6ac69bb9d39bd19cccf59f52121020bd5750d8d /ext/mbstring/php_mbregex.c
parentab67865d2100a82c53c9de302da87666ba314145 (diff)
downloadphp-git-b65f1dae41557346ee250342e248f3dd5f68c4e9.tar.gz
Reduced overhead of ext/mbstring initialization
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 74991051f0..c0b48e74d9 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -372,7 +372,7 @@ static OnigEncoding _php_mb_regex_name2mbctype(const char *pname)
const char *p;
php_mb_regex_enc_name_map_t *mapping;
- if (pname == NULL) {
+ if (pname == NULL || !*pname) {
return ONIG_ENCODING_UNDEF;
}