projects
/
platform
/
upstream
/
libatasmart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a223a4f
)
check the right boolean when calculating blob size
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Oct 2009 21:40:53 +0000
(23:40 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Oct 2009 21:40:53 +0000
(23:40 +0200)
atasmart.c
patch
|
blob
|
history
diff --git
a/atasmart.c
b/atasmart.c
index
bfb38c7
..
3ec6c19
100644
(file)
--- 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;