mirror of https://github.com/MidnightCommander/mc
(extfs_get_plugins): fix possible file descriptor leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
27a14760da
commit
33633d610b
|
@ -1595,7 +1595,7 @@ extfs_get_plugins (const char *where, gboolean silent)
|
|||
|
||||
f = open (fullname, O_RDONLY);
|
||||
|
||||
if (f > 0)
|
||||
if (f >= 0)
|
||||
{
|
||||
size_t len, i;
|
||||
extfs_plugin_info_t info;
|
||||
|
|
Loading…
Reference in New Issue