(background_attention): don't use bad file descriptor.

Found by Coverity.
Coverity id #32593.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-05-28 09:29:27 +03:00
parent 830d6c2d48
commit a7b8d00535
1 changed files with 3 additions and 3 deletions

View File

@ -281,10 +281,10 @@ background_attention (int fd, void *closure)
if (to_child_fd == -1)
message (D_ERROR, background_process_error, "%s", _("Unknown error in child"));
/* Handle the call */
if (type == Return_Integer)
else if (type == Return_Integer)
{
/* Handle the call */
int result = 0;
if (have_ctx == 0)