forked from enlightenment/efl
ecore_evas_wayland: Do not pass negative parameter to close function
Coverity reports that 'fd' here is negative, and close() cannot accept a negative parameter, so add a check to make sure 'fd' is not negative before passing to close function. Fixes CID1420318
This commit is contained in:
parent
dc7283eb14
commit
9fbe26998b
|
@ -2624,7 +2624,7 @@ end:
|
||||||
ecore_main_fd_handler_del(fd_handler);
|
ecore_main_fd_handler_del(fd_handler);
|
||||||
free(slice->slice.mem);
|
free(slice->slice.mem);
|
||||||
free(slice);
|
free(slice);
|
||||||
close(fd);
|
if (fd > -1) close(fd);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue