]> granicus.if.org Git - php/commitdiff
revent wrong part
authorStanislav Malyshev <stas@php.net>
Sun, 10 May 2009 20:58:26 +0000 (20:58 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 10 May 2009 20:58:26 +0000 (20:58 +0000)
ext/intl/intl_error.c

index 15b61a78bc3cd3c51142e79a37ec83b451343332..44f668b1959d75c9e39ce835fd64b20345d91ea2 100755 (executable)
@@ -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 );
 }
 /* }}} */