mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-11 06:43:56 +00:00
[client] fix return value in spice_read_nl error path
Returning -1 from a function with bool as return argument is the same as returning true. If the channel is not connected, return false instead to indicate the error.
This commit is contained in:
parent
0bd19cfd38
commit
6530ca62da
1 changed files with 1 additions and 1 deletions
|
@ -1286,7 +1286,7 @@ bool spice_read_nl(const struct SpiceChannel * channel, void * buffer, const ssi
|
||||||
if (!channel->connected)
|
if (!channel->connected)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("not connected");
|
DEBUG_ERROR("not connected");
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
|
|
Loading…
Reference in a new issue