mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-02-03 11:59:15 +00:00
file-xfer: task-id to start with 1
As this is unsigned, we can let 0 be in case of error Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
c0ccc8144e
commit
2fbdb68afa
@ -3435,7 +3435,7 @@ spice_file_transfer_task_init(SpiceFileTransferTask *self)
|
||||
static SpiceFileTransferTask *
|
||||
spice_file_transfer_task_new(SpiceMainChannel *channel, GFile *file, GCancellable *cancellable)
|
||||
{
|
||||
static uint32_t xfer_id = 0; /* Used to identify task id */
|
||||
static uint32_t xfer_id = 1; /* Used to identify task id */
|
||||
|
||||
return g_object_new(SPICE_TYPE_FILE_TRANSFER_TASK,
|
||||
"id", xfer_id++,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user