From 25da320128b103887e5301ea971c589ccbdcb0bc Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Thu, 22 Nov 2012 12:26:01 +0100 Subject: [PATCH] BUGFIX to list-length code: classical case of uninitialized variable. --- src/list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/list.c b/src/list.c index 3d66ce7..25ace15 100644 --- a/src/list.c +++ b/src/list.c @@ -281,6 +281,7 @@ list_length (List list) { int n; + n = 0; while (list != NULL) { n++;