]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: warning: â\80\98need_resendâ\80\99 may be used uninitialized
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 8 Jun 2017 17:30:39 +0000 (19:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Jun 2017 18:09:02 +0000 (20:09 +0200)
commitcc9b94ac943caaa0292ca047a63f64a382d85d80
treee27498c91a9c2f9bd1e9ac2545372f172a456c92
parentcf4e496c9c80ad96aff47e4d8cf318be429165f7
BUG/MINOR: warning: â\80\98need_resendâ\80\99 may be used uninitialized

The commit 201c07f68 ("MAJOR/REORG: dns: DNS resolution task and
requester queues") introduces a warning during compilation:

src/dns.c: In function â\80\98dns_resolve_recvâ\80\99:
src/dns.c:487:6: warning: â\80\98need_resendâ\80\99 may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (need_resend) {
      ^

This patch initialize the variable and remove the comment about it.
src/dns.c