summaryrefslogtreecommitdiffstats
path: root/tools/mkexynosspl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkexynosspl.c')
-rw-r--r--tools/mkexynosspl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkexynosspl.c b/tools/mkexynosspl.c
index 32b786c724..46195aad55 100644
--- a/tools/mkexynosspl.c
+++ b/tools/mkexynosspl.c
@@ -110,7 +110,7 @@ int main(int argc, char **argv)
}
ofd = open(argv[of_index], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM);
- if (ifd < 0) {
+ if (ofd < 0) {
fprintf(stderr, "%s: Can't open %s: %s\n",
prog_name, argv[of_index], strerror(errno));
exit(EXIT_FAILURE);
OpenPOWER on IntegriCloud