From: fredrik Date: Wed, 25 Oct 2006 02:53:40 +0000 (+0000) Subject: Fix uninited var bug. X-Git-Tag: 0.2~7 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=2a157d1a2ca04bc1a5c8b2e9de69697bda89ce1c Fix uninited var bug. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@701 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index 360fe1f..54daeb7 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -590,6 +590,7 @@ static char *getadcid(struct dcpeer *peer) char *ret; int isfilelist; + isfilelist = 0; if(!wcscmp(peer->transfer->path, L"files.xml") || !wcscmp(peer->transfer->path, L"files.xml.bz2") || !wcscmp(peer->transfer->path, L"MyList.DcLst")) isfilelist = 1; if(!isfilelist && (peer->transfer->hash != NULL) && isdchash(peer->transfer->hash) && supports(peer, "tthf"))