summaryrefslogtreecommitdiff
path: root/libpurple/xfer.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2020-04-09 21:21:40 -0500
committerGary Kramlich <grim@reaperworld.com>2020-04-09 21:21:40 -0500
commit8de310d3682c91477e536e1dbd0925d51374fd36 (patch)
tree2d716a4e758462e879e688aea845693e44d3e9b4 /libpurple/xfer.c
parentd283fc516d4219aee8b82edc75cd7baf10781da9 (diff)
downloadpidgin-8de310d3682c91477e536e1dbd0925d51374fd36.tar.gz
Fix some issues that scanbuild had identified
Diffstat (limited to 'libpurple/xfer.c')
-rw-r--r--libpurple/xfer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpurple/xfer.c b/libpurple/xfer.c
index 41c0b9f027..99405c7ae7 100644
--- a/libpurple/xfer.c
+++ b/libpurple/xfer.c
@@ -1429,10 +1429,10 @@ do_transfer(PurpleXfer *xfer)
*/
purple_xfer_increase_buffer_size(xfer);
} else {
- gboolean result;
+ gboolean handler_result = FALSE;
g_signal_emit(xfer, signals[SIG_DATA_NOT_SENT], 0, buffer + r,
- result - r, &result);
- if (!result) {
+ result - r, &handler_result);
+ if (!handler_result) {
purple_xfer_cancel_local(xfer);
}
}