Mercurial > pidgin
changeset 28793:fadc4a7ae32c
I don't think there's any reason to stat this file instead of using the
libpurple function.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 14 Dec 2009 04:10:52 +0000 |
parents | ec101fb81111 |
children | 65a71af04b55 |
files | libpurple/protocols/msn/slplink.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c Sun Dec 13 09:40:58 2009 +0000 +++ b/libpurple/protocols/msn/slplink.c Mon Dec 14 04:10:52 2009 +0000 @@ -464,10 +464,7 @@ 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); }