diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-12-01 11:14:48 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-12-01 11:22:38 +0100 |
commit | 2f86e533d18c67c5e820d08d53769d82884bff71 (patch) | |
tree | f82270851a521f54c42460abf35b62cce32b6460 /daemon/gvfsbackendftp.c | |
parent | 79233045b598338c12a7bb73556e1fd9d1aad155 (diff) | |
download | gvfs-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.c | 3 |
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) { |