diff options
author | Dmitry Stogov <dmitry@php.net> | 2010-07-05 12:03:08 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2010-07-05 12:03:08 +0000 |
commit | b65f1dae41557346ee250342e248f3dd5f68c4e9 (patch) | |
tree | f6ac69bb9d39bd19cccf59f52121020bd5750d8d /ext/mbstring/php_mbregex.c | |
parent | ab67865d2100a82c53c9de302da87666ba314145 (diff) | |
download | php-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.c | 2 |
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; } |