# HG changeset patch # User Paul Aurich # Date 1267827316 0 # Node ID 1cc870f328ab88ae7db2e7bd2b155ddc554b84af # Parent b5b20df96c209797a455765df54b3a8a514fce77 ft: uhm, no. s can't be 0 here, it's checked above (with a return). diff -r b5b20df96c20 -r 1cc870f328ab libpurple/ft.c --- 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);