diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2020-06-30 18:05:26 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-07 02:36:33 +0000 |
commit | 443ad25e75a29d114bc6c7d34387e6ad1f873a81 (patch) | |
tree | 0165b833b23aa73e3b8cfae99d8445f639f11cc2 /apps/plugins | |
parent | 4fa57d766164e82e6b2ae6975b52981876be9393 (diff) | |
download | rockbox-443ad25e75a29d114bc6c7d34387e6ad1f873a81.tar.gz rockbox-443ad25e75a29d114bc6c7d34387e6ad1f873a81.zip |
plugin windows_lnk: fix missing return-on-error
(found by peachy & clang's static analyzer)
Change-Id: Idcc9b3bd0c3c1164892002b8f814d74b4a6b2a2d
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/windows_lnk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/windows_lnk.c b/apps/plugins/windows_lnk.c index 8b89f7f25b..93a423fefa 100644 --- a/apps/plugins/windows_lnk.c +++ b/apps/plugins/windows_lnk.c | |||
@@ -173,6 +173,7 @@ static bool extract_link_destination(const int fd, | |||
173 | if (*link_flags & HAS_RELATIVE_PATH) { | 173 | if (*link_flags & HAS_RELATIVE_PATH) { |
174 | int ccount; | 174 | int ccount; |
175 | r = read_word(fd, &ccount); | 175 | r = read_word(fd, &ccount); |
176 | if (!r) return false; | ||
176 | if (*link_flags & IS_UNICODE) { | 177 | if (*link_flags & IS_UNICODE) { |
177 | unsigned char utf16[4], utf8[10]; | 178 | unsigned char utf16[4], utf8[10]; |
178 | link_target[0] = '\0'; | 179 | link_target[0] = '\0'; |