From: Jean-Philippe Orsini Date: Tue, 2 Apr 2013 07:10:25 +0000 (+0000) Subject: style X-Git-Tag: v0.8.0.5~108 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=67defd334424afc5b6eeb9a4b342ddec6e92d6d8 style --- diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index c9f31b3..8fa4400 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -111,14 +111,11 @@ static struct sensor_pref **sensor_pref_list_new(struct psensor **sensors, static void sensor_pref_list_free(struct sensor_pref **list) { - struct sensor_pref **cur = list; + struct sensor_pref **cur; - while (*cur) { + for (cur = list; *cur; cur++) sensor_pref_free(*cur); - cur++; - } - free(list); }