summaryrefslogtreecommitdiff
path: root/ext/intl/intl_error.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2009-05-10 20:58:26 +0000
committerStanislav Malyshev <stas@php.net>2009-05-10 20:58:26 +0000
commit06000724e76e60842ef772025ea430844900e03e (patch)
tree33bc0e761c765b91f843e858d40de971cf1b76b7 /ext/intl/intl_error.c
parentf306943799b185d5e332b3ae7eefc61f1a312bf0 (diff)
downloadphp-git-06000724e76e60842ef772025ea430844900e03e.tar.gz
revent wrong part
Diffstat (limited to 'ext/intl/intl_error.c')
-rwxr-xr-xext/intl/intl_error.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/intl/intl_error.c b/ext/intl/intl_error.c
index 15b61a78bc..44f668b195 100755
--- a/ext/intl/intl_error.c
+++ b/ext/intl/intl_error.c
@@ -173,9 +173,7 @@ UErrorCode intl_error_get_code( intl_error* err TSRMLS_DC )
*/
void intl_error_set( intl_error* err, UErrorCode code, char* msg, int copyMsg TSRMLS_DC )
{
- if(err) {
- intl_error_set_code( err, code TSRMLS_CC );
- }
+ intl_error_set_code( err, code TSRMLS_CC );
intl_error_set_custom_msg( err, msg, copyMsg TSRMLS_CC );
}
/* }}} */