diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-01-14 16:27:27 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-01-14 16:27:27 +0000 |
commit | e64ccef119356d70a1782b07b6ac5f0be0c902e8 (patch) | |
tree | 5abe5ff83edbac7793412e8f57a4bd0ff3d04b12 /pcre_config.c | |
parent | 3cbf1c2db892334e94f79fbed6f83ff33ba5297c (diff) | |
download | pcre-e64ccef119356d70a1782b07b6ac5f0be0c902e8.tar.gz |
Make pcre[16]_config set 0 in the data field when it returns BADOPTION because
PCRE_INFO_UTF8/16 has been called in the wrong library.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@872 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_config.c')
-rw-r--r-- | pcre_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pcre_config.c b/pcre_config.c index ca3e2f6..a22bf90 100644 --- a/pcre_config.c +++ b/pcre_config.c @@ -77,6 +77,7 @@ switch (what) { case PCRE_CONFIG_UTF8: #if defined COMPILE_PCRE16 + *((int *)where) = 0; return PCRE_ERROR_BADOPTION; #else #if defined SUPPORT_UTF @@ -89,6 +90,7 @@ switch (what) case PCRE_CONFIG_UTF16: #if defined COMPILE_PCRE8 + *((int *)where) = 0; return PCRE_ERROR_BADOPTION; #else #if defined SUPPORT_UTF |