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: https://git.wpitchoune.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=67defd334424afc5b6eeb9a4b342ddec6e92d6d8;p=psensor.git 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); }