diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-23 23:40:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-23 23:40:53 +0200 |
commit | cfe49b30af32b5b631b2a055c6d10197a70d90ff (patch) | |
tree | 3b013881f344477c38e6c04620391e991eae2688 | |
parent | a223a4f6277a9f006b722b13671d5292dc6339bb (diff) |
check the right boolean when calculating blob size
-rw-r--r-- | atasmart.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2679,7 +2679,7 @@ int sk_disk_get_blob(SkDisk *d, const void **blob, size_t *rsize) { size = (d->identify_valid ? 8 + sizeof(d->identify) : 0) + (d->smart_data_valid ? 8 + sizeof(d->smart_data) : 0) + - (d->smart_thresholds ? 8 + sizeof(d->smart_thresholds) : 0); + (d->smart_thresholds_valid ? 8 + sizeof(d->smart_thresholds) : 0); if (sk_disk_smart_status(d, &good) >= 0) { size += 12; |