From d69ec49dc60f97d0e4101aa49fec2b3054cd733c Mon Sep 17 00:00:00 2001 From: Danny Heijl Date: Wed, 28 Jul 1999 11:26:58 +0000 Subject: [PATCH] Make it compile again --- ext/standard/soundex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c index c81ef59069..fc2d81c3d1 100644 --- a/ext/standard/soundex.c +++ b/ext/standard/soundex.c @@ -29,7 +29,7 @@ PHP_FUNCTION(soundex) { char *somestring; - int i, small, len; + int i, small, len, code, last; pval *arg; char soundex[4 + 1]; @@ -72,6 +72,7 @@ PHP_FUNCTION(soundex) len = arg->value.str.len; /* build soundex string */ + last = -1; for (i = 0, small = 0; i < len && small < 4; i++) { /* convert chars to upper case and strip non-letter chars */ /* BUG: should also map here accented letters used in non */ -- 2.40.0