From: Ilia Alshanetsky Date: Sun, 27 Feb 2005 17:08:26 +0000 (+0000) Subject: MFH: Fixed compiler warnings. X-Git-Tag: php-5.0.4RC1~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cdf30c4906c838a7de2cb6c91fc6dfd60f93f78;p=php MFH: Fixed compiler warnings. --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index bf398d6764..809a32bedf 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -645,7 +645,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 2fcd82b171..a23ea51866 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -604,7 +604,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;