/*
- * Copyright (c) 2017 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2017 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
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);