Mercurial > pidgin.yaz
changeset 29935:1cc870f328ab
ft: uhm, no. s can't be 0 here, it's checked above (with a return).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 05 Mar 2010 22:15:16 +0000 |
parents | b5b20df96c20 |
children | 75780bc426d0 |
files | libpurple/ft.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/ft.c Fri Mar 05 05:44:25 2010 +0000 +++ b/libpurple/ft.c Fri Mar 05 22:15:16 2010 +0000 @@ -1115,13 +1115,7 @@ /* Need to indicate the prpl is still ready... */ priv->ready |= PURPLE_XFER_READY_PRPL; - /* - * if we requested 0 bytes it's only normal that end up here - * we shouldn't return as we still have something to - * write in priv->buffer - */ - if (s != 0) - g_return_if_reached(); + g_return_if_reached(); } else if (tmp < 0) { purple_debug_error("filetransfer", "Unable to read whole buffer.\n"); purple_xfer_cancel_local(xfer);