[LEDE-DEV] [PATCH v2 3/3] ext4: only fclose file if opening has succeeded
josua.mayer97 at gmail.com
josua.mayer97 at gmail.com
Tue Aug 9 08:09:09 PDT 2016
From: Josua Mayer <josua.mayer97 at gmail.com>
Signed-off-by: Josua Mayer <josua.mayer97 at gmail.com>
---
libfstools/ext4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfstools/ext4.c b/libfstools/ext4.c
index f648aa8..454b15e 100644
--- a/libfstools/ext4.c
+++ b/libfstools/ext4.c
@@ -129,8 +129,8 @@ static int check_for_mtd(const char *mtd)
return -1;
}
}
+ fclose(fp);
}
- fclose(fp);
return 0;
}
--
2.6.6
More information about the Lede-dev
mailing list