mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
server: set_server_state needs to be called with non-NULL server.
Spotted by Coverity.
This commit is contained in:
parent
0a5e707a39
commit
fea59c87ad
1 changed files with 1 additions and 1 deletions
|
@ -739,7 +739,7 @@ static struct pipe_server *create_pipe_server( struct named_pipe *pipe, unsigned
|
|||
if (!(server->ioctl_fd = alloc_pseudo_fd( &pipe_server_fd_ops, &server->obj, options )))
|
||||
{
|
||||
release_object( server );
|
||||
server = NULL;
|
||||
return NULL;
|
||||
}
|
||||
set_server_state( server, ps_idle_server );
|
||||
return server;
|
||||
|
|
Loading…
Reference in a new issue