diff options
-rwxr-xr-x | ext/intl/intl_error.c | 4 |
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 ); } /* }}} */ |