Fix typo with return values in realloc_descrs.
Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hörnquist Åstrand

parent
9ad763288d
commit
a95cae113d
@@ -832,7 +832,7 @@ realloc_descrs(struct descr **d, unsigned int *ndescr)
|
|||||||
|
|
||||||
tmp = realloc(*d, (*ndescr + 4) * sizeof(**d));
|
tmp = realloc(*d, (*ndescr + 4) * sizeof(**d));
|
||||||
if(tmp == NULL)
|
if(tmp == NULL)
|
||||||
return TRUE;
|
return FALSE;
|
||||||
|
|
||||||
*d = tmp;
|
*d = tmp;
|
||||||
reinit_descrs (*d, *ndescr);
|
reinit_descrs (*d, *ndescr);
|
||||||
@@ -842,7 +842,7 @@ realloc_descrs(struct descr **d, unsigned int *ndescr)
|
|||||||
|
|
||||||
*ndescr += 4;
|
*ndescr += 4;
|
||||||
|
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user