From: Ted Lemon Date: Wed, 27 Sep 2000 19:35:56 +0000 (+0000) Subject: Fix uninitialized use of automatic variable (Hans Persson) X-Git-Tag: V3-BETA-2-PATCH-6~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=639b70fa4527828670b93adf53a6b4d9f67ed69d;p=thirdparty%2Fdhcp.git Fix uninitialized use of automatic variable (Hans Persson) --- diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index ae2ef4c06..5b347cf8d 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -43,7 +43,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhcrelay.c,v 1.44 2000/09/01 23:06:37 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcrelay.c,v 1.45 2000/09/27 19:35:56 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -596,7 +596,7 @@ int find_interface_by_agent_option (packet, out, buf, len) u_int8_t *buf; int len; { - int i; + int i = 0; u_int8_t *circuit_id = 0; unsigned circuit_id_len; struct interface_info *ip;