Skip to content

Commit

Permalink
remove realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfontes committed May 5, 2021
1 parent f8bbf28 commit 1ea88d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wmediumd/wmediumd_dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int add_station(struct wmediumd *ctx, const u8 addr[]) {
station->tx_power = SNR_DEFAULT;
station_init_queues(station);
list_add_tail(&station->list, &ctx->stations);
realloc(ctx->sta_array, 1);
//realloc(ctx->sta_array, 1);
ctx->sta_array[station->index] = station;
ctx->num_stas = (int) newnum;
ret = station->index;
Expand Down

0 comments on commit 1ea88d5

Please sign in to comment.