summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--verity/verity_verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/verity/verity_verifier.cpp b/verity/verity_verifier.cpp
index 036e85be..e770708f 100644
--- a/verity/verity_verifier.cpp
+++ b/verity/verity_verifier.cpp
@@ -80,7 +80,7 @@ int main(int argc, char* argv[]) {
// Get the raw image.
android::base::unique_fd fd(open(argv[1], O_RDONLY));
- if (!fd) {
+ if (fd == -1) {
fprintf(stderr, "failed to open %s: %s\n", argv[1], strerror(errno));
return 1;
}