mirror of https://github.com/MidnightCommander/mc
(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:
parent
830d6c2d48
commit
a7b8d00535
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue