parent
9189e67ad7
commit
fe3fd39d8f
1 changed files with 2 additions and 2 deletions
|
@ -277,8 +277,8 @@ unit_onresize(int type)
|
||||||
|
|
||||||
n = ef_nelem(type);
|
n = ef_nelem(type);
|
||||||
cl = realloc(clink[type], n * sizeof(*clink[type]));
|
cl = realloc(clink[type], n * sizeof(*clink[type]));
|
||||||
if (!cl)
|
if (!cl && n)
|
||||||
return -1;
|
exit_nomem();
|
||||||
for (i = nclink[type]; i < n; i++)
|
for (i = nclink[type]; i < n; i++)
|
||||||
clink_init(&cl[i]);
|
clink_init(&cl[i]);
|
||||||
clink[type] = cl;
|
clink[type] = cl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue