mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +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
@ -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 New Issue
Block a user