pidgin: b784257d: I already removed the other g_stat, so I...
qulogic at pidgin.im
qulogic at pidgin.im
Fri Jan 1 04:00:53 EST 2010
-----------------------------------------------------------------
Revision: b784257d9e933faa88e1d402ed9f193e32d6eb9e
Ancestor: c2555c19a1eba04c61a07d8c6d53fd3b95cfef1f
Author: qulogic at pidgin.im
Date: 2010-01-01T08:40:29
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b784257d9e933faa88e1d402ed9f193e32d6eb9e
Modified files:
libpurple/protocols/msn/slplink.c
ChangeLog:
I already removed the other g_stat, so I don't think this one is needed
either. No other prpl seems to need it. Also, xfer is always !NULL in this
function.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c 2f7a0cb081768c7b07ccb6d4a8a54de2cb979c58
+++ libpurple/protocols/msn/slplink.c 590f3cea0e7283cd23d5f8897e11d0630e9e56be
@@ -671,7 +671,6 @@ gen_context(PurpleXfer *xfer, const char
static gchar *
gen_context(PurpleXfer *xfer, const char *file_name, const char *file_path)
{
- struct stat st;
gsize size = 0;
MsnContextHeader header;
gchar *u8 = NULL;
@@ -683,12 +682,8 @@ gen_context(PurpleXfer *xfer, const char
glong uni_len = 0;
gsize len;
- if (xfer)
- size = purple_xfer_get_size(xfer);
+ size = purple_xfer_get_size(xfer);
- if (size == 0 && g_stat(file_path, &st) == 0)
- size = st.st_size;
-
if(!file_name) {
gchar *basename = g_path_get_basename(file_path);
u8 = purple_utf8_try_convert(basename);
More information about the Commits
mailing list