commit | ff3c99978aea0e05008883bc090b10141f6929a0 | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Wed Apr 14 22:10:27 2021 +0800 |
committer | Jeff Vander Stoep <jeffv@google.com> | Tue May 11 10:09:48 2021 +0200 |
tree | c28a3d85de577c17969495eb3f10e1fb9caa39a8 | |
parent | 0c40b2bbcfeee9f52e3857a0d4f517d3a6d658a6 [diff] |
secilc.c: Don't fail if input file is empty fread(3) returns zero if |size| is zero. This confuses secilc, and causes it to fail with a "Failure reading file" error, even though there is no error. Add a shortcut that closes and skips an input file if file size is zero. Signed-off-by: Yi-Yo Chiang <yochiang@google.com> Change-Id: I9832c62ebf6f716235e871b5e29b0fd70c94b453