station_gui.c
changeset 1474 d83520edcda6
parent 1341 3533880da5d5
child 1553 4976359e2bf9
--- a/station_gui.c	Wed Mar 09 19:42:37 2005 +0000
+++ b/station_gui.c	Wed Mar 09 19:48:20 2005 +0000
@@ -82,8 +82,7 @@
 	uint16 *i;
 
 	// reset #-of stations to 0 because ++ is used for value-assignment
-	for (i = _num_station_sort; i != endof(_num_station_sort); i++)
-		*i = 0;
+	memset(_num_station_sort, 0, sizeof(_num_station_sort));
 
 	/* Create array for sorting */
 	_station_sort = realloc(_station_sort, GetStationPoolSize() * sizeof(_station_sort[0]));