From: Zeev Suraski Date: Tue, 18 Jul 2000 20:40:23 +0000 (+0000) Subject: Shutup a gcc warning X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=327e33972b678608d1403f80fb8b9aca1bb069d6;p=php Shutup a gcc warning --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 5e4fcdfe92..65a261eb7c 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2602,7 +2602,7 @@ PHP_FUNCTION(str_pad) char *pad_str_val = " "; /* Pointer to padding string */ int pad_str_len = 1; /* Length of the padding string */ int pad_type_val = STR_PAD_RIGHT; /* The padding type value */ - int i, left_pad, right_pad; + int i, left_pad=0, right_pad=0; if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 4 ||