BUGFIX to list-length code: classical case of uninitialized variable.
This commit is contained in:
parent
fedd729ab2
commit
25da320128
@ -281,6 +281,7 @@ list_length (List list)
|
||||
{
|
||||
int n;
|
||||
|
||||
n = 0;
|
||||
while (list != NULL)
|
||||
{
|
||||
n++;
|
||||
|
Loading…
Reference in New Issue
Block a user