changeset 28839:932f16167621

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.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 01 Jan 2010 08:40:29 +0000
parents 6ea85c7fe152
children 7aef89b92589
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Fri Jan 01 08:32:17 2010 +0000
+++ b/libpurple/protocols/msn/slplink.c	Fri Jan 01 08:40:29 2010 +0000
@@ -671,7 +671,6 @@
 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,11 +682,7 @@
 	glong uni_len = 0;
 	gsize len;
 
-	if (xfer)
-		size = purple_xfer_get_size(xfer);
-
-	if (size == 0 && g_stat(file_path, &st) == 0)
-		size = st.st_size;
+	size = purple_xfer_get_size(xfer);
 
 	if(!file_name) {
 		gchar *basename = g_path_get_basename(file_path);