summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendftp.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-12-01 11:14:48 +0100
committerAlexander Larsson <alexl@redhat.com>2009-12-01 11:22:38 +0100
commit2f86e533d18c67c5e820d08d53769d82884bff71 (patch)
treef82270851a521f54c42460abf35b62cce32b6460 /daemon/gvfsbackendftp.c
parent79233045b598338c12a7bb73556e1fd9d1aad155 (diff)
downloadgvfs-2f86e533d18c67c5e820d08d53769d82884bff71.tar.gz
Ensure timer_cancel is initialized
Otherwise it may be used uninitialized if progress_callback is NULL
Diffstat (limited to 'daemon/gvfsbackendftp.c')
-rw-r--r--daemon/gvfsbackendftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 41eb4931..5dfaa4c7 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -1167,6 +1167,9 @@ ftp_output_stream_splice (GOutputStream *output,
GCancellable *current, *timer_cancel;
gulong cancel_cb_id;
+ timer_cancel = NULL;
+ cancel_cb_id = 0;
+
bytes_copied = 0;
if (progress_callback)
{