Fix uninitialised variable and iprove debug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-06-02 18:08:47 +00:00
parent 5f5cb7d57a
commit b93da0fcb9
2 changed files with 8 additions and 2 deletions

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#include "config.h"
@ -477,7 +478,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
NSDictionary *dict = [not userInfo];
NSData *d;
NSRange r;
BOOL complete;
BOOL complete = NO;
RETAIN(self);
@ -1168,6 +1169,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
name: GSFileHandleConnectCompletionNotification
object: sock];
connectionState = connecting;
if (debug) NSLog(@"%@ start connect", NSStringFromSelector(_cmd));
}
else
{