code style
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 19 Sep 2014 07:56:50 +0000 (09:56 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 19 Sep 2014 07:56:50 +0000 (09:56 +0200)
src/lib/hdd_hddtemp.c

index 5c89a1f..ca578c5 100644 (file)
@@ -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;