From: Pierre Joye Date: Thu, 20 Jan 2011 06:45:52 +0000 (+0000) Subject: - init err (and simplify) X-Git-Tag: php-5.4.0alpha1~191^2~339 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3292399d2761c7fd2d388e0e621c7126bb6284a0;p=php - init err (and simplify) --- diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c index 657d45b55d..0599758d1e 100644 --- a/ext/com_dotnet/com_olechar.c +++ b/ext/com_dotnet/com_olechar.c @@ -86,9 +86,7 @@ PHPAPI char *php_com_olestring_to_string(OLECHAR *olestring, uint *string_len, i } if (!ok) { - char *msg; - err = GetLastError(); - msg = php_win32_error_to_msg(err); + char *msg = php_win32_error_to_msg(GetLastError()); php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not convert string from unicode: `%s'", msg);