X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fconfig%2Fsymbol.c;h=3c8bd9bb4267a874cd1fa112d4a21b569bd56296;hp=20136ffefb23b814fa8b300b70a07b821b3ec71f;hb=9f049536fdf404b3f1941a22be6870d92a3957e3;hpb=e200e491e3f8ebaa38e4ebbc136ef57af5394569 diff --git a/carl9170fw/config/symbol.c b/carl9170fw/config/symbol.c index 20136ff..3c8bd9b 100644 --- a/carl9170fw/config/symbol.c +++ b/carl9170fw/config/symbol.c @@ -1061,7 +1061,7 @@ struct symbol **sym_re_search(const char *pattern) } if (sym_match_arr) { qsort(sym_match_arr, cnt, sizeof(struct sym_match), sym_rel_comp); - sym_arr = malloc((cnt+1) * sizeof(struct symbol)); + sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); if (!sym_arr) goto sym_re_search_free; for (i = 0; i < cnt; i++)