From 2783bc00819d2fede875293646a88b17779c32d8 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Wed, 1 Sep 1999 00:58:45 +0000 Subject: [PATCH] removed a warning --- netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 71f21d995136..fd3913acb03f 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -934,7 +934,7 @@ nsFtpConnectionThread::R_pwd() { lNewMsg.Mid(path, start-1, lNewMsg.Length() - start);*/ nsString2 path = lNewMsg; nsString2 ptr; - PRInt32 start; + PRInt32 start=0; if (path.First() != '/') { start = path.FindChar('/'); @@ -942,7 +942,7 @@ nsFtpConnectionThread::R_pwd() { path.Right(ptr, start); } else { // if we couldn't find a slash, check for back slashes and switch them out. - PRInt32 start = path.FindChar('\\'); + start = path.FindChar('\\'); if (start > -1) { path.ReplaceChar("\\", '/'); }