summaryrefslogtreecommitdiff
path: root/difftool/compare_files_sqfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'difftool/compare_files_sqfs.c')
-rw-r--r--difftool/compare_files_sqfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/difftool/compare_files_sqfs.c b/difftool/compare_files_sqfs.c
index d8bef83..76fae7a 100644
--- a/difftool/compare_files_sqfs.c
+++ b/difftool/compare_files_sqfs.c
@@ -17,6 +17,9 @@ int compare_files(file_info_t *a, file_info_t *b, const char *path)
if (a->size != b->size)
return 1;
+ if (compare_flags & COMPARE_NO_CONTENTS)
+ return 0;
+
for (offset = 0; offset < a->size; offset += diff) {
diff = a->size - offset;