Mercurial > pidgin
comparison libpurple/ft.c @ 29535: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 | 1326fd4dfdc9 |
children | 75780bc426d0 |
comparison
equal
deleted
inserted
replaced
29534:b5b20df96c20 | 29535:1cc870f328ab |
---|---|
1113 } | 1113 } |
1114 | 1114 |
1115 /* Need to indicate the prpl is still ready... */ | 1115 /* Need to indicate the prpl is still ready... */ |
1116 priv->ready |= PURPLE_XFER_READY_PRPL; | 1116 priv->ready |= PURPLE_XFER_READY_PRPL; |
1117 | 1117 |
1118 /* | 1118 g_return_if_reached(); |
1119 * if we requested 0 bytes it's only normal that end up here | |
1120 * we shouldn't return as we still have something to | |
1121 * write in priv->buffer | |
1122 */ | |
1123 if (s != 0) | |
1124 g_return_if_reached(); | |
1125 } else if (tmp < 0) { | 1119 } else if (tmp < 0) { |
1126 purple_debug_error("filetransfer", "Unable to read whole buffer.\n"); | 1120 purple_debug_error("filetransfer", "Unable to read whole buffer.\n"); |
1127 purple_xfer_cancel_local(xfer); | 1121 purple_xfer_cancel_local(xfer); |
1128 return; | 1122 return; |
1129 } | 1123 } |