]> git.saurik.com Git - apple/libc.git/blobdiff - libdarwin/dirstat.c
Libc-1353.100.2.tar.gz
[apple/libc.git] / libdarwin / dirstat.c
index 89b0a83115c552cfca854b016959c95e31544da6..d62a521f7a6b6f14fae8322ef9a23de766cfebb4 100644 (file)
@@ -335,8 +335,8 @@ fdirstat_fallback(int parent_fd, int flags, struct dirstat *ds)
                                                if (1 == attrs.link_count) {
                                                        ds->total_size += object_size;
                                                } else {
-                                                       bool new_fileid = _dirstat_fileid_set_add(fileid_seen, attrs.fileid);
-                                                       if (new_fileid) {
+                                                       bool seen_fileid = _dirstat_fileid_set_add(fileid_seen, attrs.fileid);
+                                                       if (!seen_fileid) {
                                                                ds->total_size += object_size;
                                                        } else {
                                                                DEBUGPRINT( "Skipping hardlinked file at %s/%s\n", path, name);