Skip to content

Commit a76e80f

Browse files
committed
AlgoListSz returns 0 if algoList is NULL
1 parent 8c0c7fd commit a76e80f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/internal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3988,6 +3988,9 @@ static word32 AlgoListSz(const char* algoList)
39883988
{
39893989
word32 algoListSz;
39903990

3991+
if (algoList == NULL)
3992+
return 0;
3993+
39913994
algoListSz = (word32)WSTRLEN(algoList);
39923995
if (algoList[algoListSz-1] == ',') {
39933996
--algoListSz;

0 commit comments

Comments
 (0)