commit | b0f7532a30b3322b13dec7fe3460f4ec907bdbc3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Sep 09 11:21:06 2011 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 09 11:21:06 2011 +0200 |
tree | d10fd53dc4c03f64364a7975e5a907a98d983ea1 | |
parent | 96c148b0d22f461afe5d345ca9d93d0e8ccc7e78 [diff] |
[MINOR] frontend: ensure debug message length is always initialized If the socket family ever changes from AF_INET*/AF_UNIX, we'd have a problem.
diff --git a/src/frontend.c b/src/frontend.c index a295729..4ed4862 100644 --- a/src/frontend.c +++ b/src/frontend.c
@@ -178,7 +178,7 @@ if (unlikely((global.mode & MODE_DEBUG) && (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)))) { char pn[INET6_ADDRSTRLEN]; - int len; + int len = 0; if (!(s->flags & SN_FRT_ADDR_SET)) get_frt_addr(s);