Fixed init problems.

Sun, 10 Jul 2022 15:03:26 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 10 Jul 2022 15:03:26 +0200
changeset 615
33a5b63e86d7
parent 614
389097dc665d
child 616
e2b82881c13e
child 618
3732b701fde5

Fixed init problems.

thermferm/rdconfig.c file | annotate | diff | comparison | revisions
--- a/thermferm/rdconfig.c	Sun Jul 10 14:33:13 2022 +0200
+++ b/thermferm/rdconfig.c	Sun Jul 10 15:03:26 2022 +0200
@@ -96,6 +96,8 @@
 	    free(tmp2->air_address);
 	if (tmp2->beer_address)
 	    free(tmp2->beer_address);
+	if (tmp2->beer_address2)
+	    free(tmp2->beer_address2);
 	if (tmp2->chiller_address)
 	    free(tmp2->chiller_address);
 	if (tmp2->heater_address)
@@ -572,8 +574,8 @@
     unit = (units_list *)malloc(sizeof(units_list));
     unit->next = NULL;
     unit->uuid = unit->product_uuid = unit->product_code = unit->product_name = unit->event_msg = \
-		 unit->alias = unit->air_address = unit->beer_address = unit->chiller_address = unit->heater_address = \
-		 unit->cooler_address = unit->fan_address = unit->door_address = \
+		 unit->alias = unit->air_address = unit->beer_address = unit->beer_address2 = unit->chiller_address = \
+		 unit->heater_address = unit->cooler_address = unit->fan_address = unit->door_address = \
 		 unit->light_address = unit->psu_address = unit->profile_uuid = unit->profile_name  = NULL;
     unit->volume = unit->prof_peak_abs = unit->prof_peak_rel = 0.0;
     unit->air_temperature = unit->beer_temperature = unit->chiller_temperature = unit->beer_set_lo = unit->beer_set_hi = \

mercurial