summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-10-23 23:40:53 +0200
committerLennart Poettering <lennart@poettering.net>2009-10-23 23:40:53 +0200
commitcfe49b30af32b5b631b2a055c6d10197a70d90ff (patch)
tree3b013881f344477c38e6c04620391e991eae2688
parenta223a4f6277a9f006b722b13671d5292dc6339bb (diff)
check the right boolean when calculating blob size
-rw-r--r--atasmart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atasmart.c b/atasmart.c
index bfb38c7..3ec6c19 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -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;