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;
|
int n;
|
||||||
|
|
||||||
|
n = 0;
|
||||||
while (list != NULL)
|
while (list != NULL)
|
||||||
{
|
{
|
||||||
n++;
|
n++;
|
||||||
|
Loading…
Reference in New Issue
Block a user