projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c954b92
)
code style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 19 Sep 2014 07:56:50 +0000
(09:56 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 19 Sep 2014 07:56:50 +0000
(09:56 +0200)
src/lib/hdd_hddtemp.c
patch
|
blob
|
history
diff --git
a/src/lib/hdd_hddtemp.c
b/src/lib/hdd_hddtemp.c
index
5c89a1f
..
ca578c5
100644
(file)
--- a/
src/lib/hdd_hddtemp.c
+++ b/
src/lib/hdd_hddtemp.c
@@
-176,11
+176,12
@@
static char *next_hdd_info(char *string, struct hdd_info *info)
struct psensor **hddtemp_psensor_list_add(struct psensor **sensors,
int values_max_length)
{
- char *hddtemp_output = fetch();
- char *c;
+ char *hddtemp_output, *c;
struct hdd_info info;
struct psensor **result;
+ hddtemp_output = fetch();
+
if (!hddtemp_output)
return sensors;