soc.2009.transport: fff143e2: Fixed uninitialized variable
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Fri Aug 7 05:31:58 EDT 2009
-----------------------------------------------------------------
Revision: fff143e2813184e70dd3082bae79df8e33f496cd
Ancestor: 06fe7b50a358be4f132f30f26f1a4fc3460daf92
Author: hanzz at soc.pidgin.im
Date: 2009-08-07T09:27:16
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/fff143e2813184e70dd3082bae79df8e33f496cd
Modified files:
filetransferrepeater.cpp main.cpp
ChangeLog:
Fixed uninitialized variable
-------------- next part --------------
============================================================
--- filetransferrepeater.cpp 17e8a7c9af253799eaa140767a01227d90d03373
+++ filetransferrepeater.cpp ea1c8d88dc42f66ee0f9944d457eedfaec774016
@@ -66,7 +66,6 @@ void SendFileStraight::exec() {
getMutex()->unlock();
if (!empty) {
ret = m_stream->send(t);
- std::cout << ret << "\n";
if(ret<1){
std::cout << "error in sending or sending probably finished\n";
break;
@@ -184,6 +183,7 @@ FiletransferRepeater::FiletransferRepeat
m_resender = NULL;
m_size = -1;
m_send = true;
+ m_wantsData = false;
}
void FiletransferRepeater::registerXfer(PurpleXfer *xfer) {
============================================================
--- main.cpp 727338f5ad13eed53967f3bb3822f20aaf8b37ba
+++ main.cpp 19bc5edc5490708cbbce2eb55ad1be70fe6cd18c
@@ -441,7 +441,7 @@ static size_t XferWrite(PurpleXfer *xfer
FiletransferRepeater *repeater = (FiletransferRepeater *) xfer->ui_data;
std::string d((char *)buffer, size);
if (repeater->getResender())
- repeater->getResender()->getMutex()->lock();
+ repeater->getResender()->getMutex()->lock();
repeater->gotData(d);
if (repeater->getResender())
repeater->getResender()->getMutex()->unlock();
More information about the Commits
mailing list