From: Jean-Philippe Orsini Date: Fri, 19 Sep 2014 07:56:50 +0000 (+0200) Subject: code style X-Git-Tag: v1.1.2~39 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=143e9c1215ffb9de625aaac9558c8e0a387c99c3 code style --- diff --git a/src/lib/hdd_hddtemp.c b/src/lib/hdd_hddtemp.c index 5c89a1f..ca578c5 100644 --- 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;