changeset 2535:1be691224285 draft

Fix a potential garbage jump
author Roy Marples <roy@marples.name>
date Sat, 07 Jun 2014 21:02:29 +0000
parents 6b7261a08b44
children fda9b4b61a5a
files ipv6.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ipv6.c	Fri Jun 06 20:15:33 2014 +0000
+++ b/ipv6.c	Sat Jun 07 21:02:29 2014 +0000
@@ -206,6 +206,7 @@
 	int x;
 
 	if ((fp = fopen(SECRET, "r"))) {
+		len = 0;
 		while (fgets(line, sizeof(line), fp)) {
 			len = strlen(line);
 			if (len) {