get_alt_digits: Fix typo in allocation
adi->digit is an array of CHAR *, not of CHAR **. Fixes Coverity CID 60043 Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
db8bda4b47
commit
94f40db019
|
@ -608,7 +608,7 @@ get_alt_digits (const char *alt_digits)
|
|||
++adi->num;
|
||||
/* Allocate the `digit' array, which is an array of `num' pointers into
|
||||
`buffer'. */
|
||||
adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR **));
|
||||
adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR *));
|
||||
if (!adi->digit)
|
||||
{
|
||||
free (adi);
|
||||
|
|
Loading…
Reference in New Issue