- cosmetics
[m6w6/ext-http] / http_auth_api.c
index 386faffcf3eb9fe537569ff4a8e829dbd7111b60..be2f74434322dab6d5d8831378dbdc1a843f948a 100644 (file)
@@ -60,10 +60,8 @@ PHP_HTTP_API STATUS _http_auth_credentials(char **user, char **pass TSRMLS_DC)
                zval *zauth = NULL;
                HTTP_GSC(zauth, "HTTP_AUTHORIZATION", FAILURE);
                {
-                       char *decoded, *colon;
                        int decoded_len;
-                       decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth),
-                               &decoded_len);
+                       char *colon, *decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len);
 
                        if (colon = strchr(decoded + 6, ':')) {
                                *user = estrndup(decoded + 6, colon - decoded - 6);