commit | f90ce64d68cf0ad56ff0370338ec58c883a3448d | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@opensourcerouting.org> | Tue Sep 15 20:58:29 2015 -0700 |
committer | Martin Winter <mwinter@opensourcerouting.org> | Fri Oct 16 23:50:46 2015 -0700 |
tree | 243ca3452d54fa1c2add7d203b6983d63f8853fc | |
parent | da1b7eaa0ac5d590818e1cde92a9807a2f0e07f2 [diff] |
isisd/isis_dlpi: Fix warning 'fd' may be used uninitialized. Init to -1 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c index d16667e..b583d10 100644 --- a/isisd/isis_dlpi.c +++ b/isisd/isis_dlpi.c
@@ -303,7 +303,7 @@ static int open_dlpi_dev (struct isis_circuit *circuit) { - int fd, unit, retval; + int fd = -1, unit, retval; char devpath[MAXPATHLEN]; dl_info_ack_t *dia = (dl_info_ack_t *)dlpi_ctl; ssize_t acklen;