pidgin: a9a50d16: I don't think there's any reason to stat...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:27:51 EST 2009


-----------------------------------------------------------------
Revision: a9a50d1684ef73569a1fea4b8fa743bea7c9314e
Ancestor: d813bbb8c323184987e92c9bd801fd7e64262104
Author: qulogic at pidgin.im
Date: 2009-12-14T04:10:52
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a9a50d1684ef73569a1fea4b8fa743bea7c9314e

Modified files:
        libpurple/protocols/msn/slplink.c

ChangeLog: 

I don't think there's any reason to stat this file instead of using the
libpurple function.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c	06ae2ca79fb1f12770adcccdd43e56868f18f1d3
+++ libpurple/protocols/msn/slplink.c	d14ea1f4feddb571b86592fe3506d45839848bf0
@@ -464,10 +464,7 @@ send_file_cb(MsnSlpCall *slpcall)
 
 	xfer = (PurpleXfer *)slpcall->xfer;
 	purple_xfer_start(slpcall->xfer, -1, NULL, 0);
-	if (g_stat(purple_xfer_get_local_filename(xfer), &st) == 0)
-		slpmsg->size = st.st_size;
-	else if (purple_xfer_get_size(xfer))
-		slpmsg->size = purple_xfer_get_size(xfer);
+	slpmsg->size = purple_xfer_get_size(xfer);
 
 	msn_slplink_send_slpmsg(slpcall->slplink, slpmsg);
 }


More information about the Commits mailing list