(extfs_get_plugins): fix possible file descriptor leak.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-04-20 17:55:48 +04:00
parent 27a14760da
commit 33633d610b
1 changed files with 1 additions and 1 deletions

View File

@ -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;