diff options
Diffstat (limited to 'android/snapshot.c')
-rw-r--r-- | android/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/snapshot.c b/android/snapshot.c index 047465f..d02d9a8 100644 --- a/android/snapshot.c +++ b/android/snapshot.c @@ -310,7 +310,7 @@ snapshot_print_and_exit( const char *snapstorage ) { /* open snapshot file */ int fd = open(snapstorage, O_RDONLY); - if (!fd) { + if (fd < 0) { derror("Could not open snapshot file '%s': %s", snapstorage, strerror(errno)); exit(1); } |