ft: uhm, no. s can't be 0 here, it's checked above (with a return).

Fri, 05 Mar 2010 22:15:16 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Fri, 05 Mar 2010 22:15:16 +0000
changeset 29820
b81994aa4e15
parent 29819
4c96cfc0636e
child 29821
8c85f494737a

ft: uhm, no. s can't be 0 here, it's checked above (with a return).

libpurple/ft.c file | annotate | diff | comparison | revisions
--- 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);

mercurial