cvs: php4 /ext/pcre php_pcre.c

From: Date: Thu, 24 Oct 2002 19:06:20 +0000
Subject: cvs: php4 /ext/pcre php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15386@lists.php.net to get a copy of this message
helly Thu Oct 24 15:06:20 2002 EDT Modified files: /php4/ext/pcre php_pcre.c Log: fix compiler warning Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.129 php4/ext/pcre/php_pcre.c:1.130 --- php4/ext/pcre/php_pcre.c:1.129 Mon Oct 7 13:16:23 2002 +++ php4/ext/pcre/php_pcre.c Thu Oct 24 15:06:19 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.129 2002/10/07 17:16:23 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.130 2002/10/24 19:06:19 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -753,16 +753,16 @@ int backref; /* Backreference number */ int eval; /* If the replacement string should be eval'ed */ int start_offset; /* Where the new search starts */ - int g_notempty = 0; /* If the match should not be empty */ - int replace_len; /* Length of replacement string */ + int g_notempty=0; /* If the match should not be empty */ + int replace_len=0; /* Length of replacement string */ char *result, /* Result of replacement */ - *replace, /* Replacement string */ + *replace=NULL, /* Replacement string */ *new_buf, /* Temporary buffer for re-allocation */ *walkbuf, /* Location of current replacement in the result */ *walk, /* Used to walk the replacement string */ *match, /* The current match */ *piece, /* The current piece of subject */ - *replace_end, /* End of replacement string */ + *replace_end=NULL, /* End of replacement string */ *eval_result, /* Result of eval or custom function */ walk_last; /* Last walked character */

« previous php.cvs (#15386) next »