aboutsummaryrefslogtreecommitdiff
path: root/src/util/getuniquepath.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-11-18 17:34:41 +0100
committerVasil Dimov <vd@FreeBSD.org>2021-03-01 12:57:00 +0100
commit8b6e4b3b23027da263d257b342f5d9a53e4032d5 (patch)
treeadf38dbe37cfdb8a32b6766247b3884c05927e5a /src/util/getuniquepath.cpp
parent4cba2fdafa483cbdb70f581174138ec253c80d48 (diff)
util: fix ReadBinaryFile() returning partial contents
If an error occurs and `fread()` returns `0` (nothing was read) then the code before this patch would have returned "success" with a partially read contents of the file.
Diffstat (limited to 'src/util/getuniquepath.cpp')
0 files changed, 0 insertions, 0 deletions