forked from github/server
stop coverity warning (realloc).
This commit is contained in:
parent
07d2278741
commit
6bf33f9fc2
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ static int *keys_update(int *base, int key, int val)
|
|||
ptrdiff_t diff = kv - base;
|
||||
sz = keys_size(n + 1);
|
||||
base = realloc(base, (sz * 2 + 1) * sizeof(int));
|
||||
if (!base) abort();
|
||||
kv = base + diff;
|
||||
}
|
||||
base[0] = n + 1;
|
||||
|
|
Loading…
Reference in a new issue