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);
|
||||
cl = realloc(clink[type], n * sizeof(*clink[type]));
|
||||
if (!cl)
|
||||
return -1;
|
||||
if (!cl && n)
|
||||
exit_nomem();
|
||||
for (i = nclink[type]; i < n; i++)
|
||||
clink_init(&cl[i]);
|
||||
clink[type] = cl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue