From: Ilia Alshanetsky Date: Sun, 27 Feb 2005 17:08:18 +0000 (+0000) Subject: Fixed compiler warnings. X-Git-Tag: RELEASE_0_3~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=036767451740555cc6a7b31b32d0fc5cdb4a899a;p=php Fixed compiler warnings. --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index d338efb37f..8572324f39 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -648,7 +648,7 @@ php_stream * php_stream_ftp_opendir(php_stream_wrapper *wrapper, char *path, cha { php_stream *stream, *reuseid, *datastream = NULL; php_url *resource = NULL; - int result, use_ssl, use_ssl_on_data = 0; + int result = 0, use_ssl, use_ssl_on_data = 0; char *hoststart = NULL, tmp_line[512]; char ip[sizeof("123.123.123.123")]; unsigned short portno; diff --git a/ext/standard/image.c b/ext/standard/image.c index e80c594427..76e908dc2b 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -601,7 +601,7 @@ static struct gfxinfo *php_handle_jpc(php_stream * stream TSRMLS_DC) { struct gfxinfo *result = NULL; unsigned short dummy_short; - int dummy_int, highest_bit_depth, bit_depth; + int highest_bit_depth, bit_depth; unsigned char first_marker_id; unsigned int i;