From 2520f3f79c0b65894cea4914c041f06b8d29b41a Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 7 Jul 2010 03:03:19 +0000 Subject: * file.c (ruby_find_basename): should initialize f. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 46cf319ff7..63a6ebe61f 100644 --- a/file.c +++ b/file.c @@ -3436,7 +3436,7 @@ ruby_find_basename(const char *name, long *len, long *ext) #if defined DOSISH_DRIVE_LETTER || defined DOSISH_UNC const char *root; #endif - long f, n = -1; + long f = 0, n = -1; name = skipprefix(name); #if defined DOSISH_DRIVE_LETTER || defined DOSISH_UNC -- cgit v1.2.3