author | dominik |
Sat, 08 Jan 2005 19:34:00 +0000 | |
changeset 945 | 7f7e68843aa1 |
parent 944 | d046a9f508df |
child 946 | 2468063f35a4 |
vehicle_gui.c | file | annotate | diff | comparison | revisions |
--- a/vehicle_gui.c Sat Jan 08 15:31:20 2005 +0000 +++ b/vehicle_gui.c Sat Jan 08 19:34:00 2005 +0000 @@ -120,7 +120,7 @@ } vl->sort_list = realloc(vl->sort_list, n * sizeof(vl->sort_list[0])); - if (vl->sort_list == NULL) + if (n!=0 && vl->sort_list == NULL) error("Could not allocate memory for the vehicle-sorting-list"); vl->list_length = n;