diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2019-01-03 09:25:37 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-01-16 09:46:21 +0000 |
commit | 5be15631474329dc5a03f6b1bf3a78a4add0707b (patch) | |
tree | 89157f54dc990754f010646ebd4285dcadc629ba /src | |
parent | 098268a33c7c8008ccec9050aea8f0763f1c06d5 (diff) |
file-xfers: Initialise correctly AgentFileXferTask::file_fd field
Correct invalid value for a file descriptor is -1, not 0.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vdagent/file-xfers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vdagent/file-xfers.c b/src/vdagent/file-xfers.c index b5aedd0..78d5db3 100644 --- a/src/vdagent/file-xfers.c +++ b/src/vdagent/file-xfers.c @@ -133,6 +133,7 @@ static AgentFileXferTask *vdagent_parse_start_msg( goto error; } task = g_new0(AgentFileXferTask, 1); + task->file_fd = -1; task->id = msg->id; task->file_name = g_key_file_get_string( keyfile, "vdagent-file-xfer", "name", &error); |