[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITTED] poke: fix error handling in pk_cmd_load_file
From: |
Jose E. Marchesi |
Subject: |
[COMMITTED] poke: fix error handling in pk_cmd_load_file |
Date: |
Sun, 02 Jan 2022 17:40:00 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
2022-01-02 Jose E. Marchesi <jemarch@gnu.org>
* poke/pk-cmd-ios.c (pk_cmd_load_file): Handle return value of
pk_file_readable the proper way.
---
ChangeLog | 5 +++++
poke/pk-cmd-ios.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index ab5f74ea..9097a116 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2022-01-02 Jose E. Marchesi <jemarch@gnu.org>
+ * poke/pk-cmd-ios.c (pk_cmd_load_file): Handle return value of
+ pk_file_readable the proper way.
+
+2022-01-02 Jose E. Marchesi <jemarch@gnu.org>
+
* poke/pk-help.pk (pk_help): Print synopsis only if it is actually
present.
diff --git a/poke/pk-cmd-ios.c b/poke/pk-cmd-ios.c
index 3105724a..3723b932 100644
--- a/poke/pk-cmd-ios.c
+++ b/poke/pk-cmd-ios.c
@@ -392,7 +392,7 @@ pk_cmd_load_file (int argc, struct pk_cmd_arg argv[],
uint64_t uflags)
return 0;
}
- if ((emsg = pk_file_readable (filename)) == NULL)
+ if ((emsg = pk_file_readable (filename)) != NULL)
goto no_file;
}
else
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [COMMITTED] poke: fix error handling in pk_cmd_load_file,
Jose E. Marchesi <=