mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
BUILD: tools: avoid a build warning on gcc-4.8 in resolve_sym_name()
A build warning is emitted with gcc-4.8 in tools.c since commit
e920d73f59 ("MINOR: tools: improve symbol resolution without dl_addr")
because the compiler doesn't see that <size> is necessarily initialized.
Let's just preset it.
This commit is contained in:
parent
4e09789644
commit
ed75148ca0
1 changed files with 1 additions and 1 deletions
|
|
@ -5553,7 +5553,7 @@ const void *resolve_sym_name(struct buffer *buf, const char *pfx, const void *ad
|
|||
__decl_thread_var(static HA_SPINLOCK_T dladdr_lock);
|
||||
int isolated;
|
||||
Dl_info dli;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
const char *fname, *p;
|
||||
#endif
|
||||
size_t dist, best_dist;
|
||||
|
|
|
|||
Loading…
Reference in a new issue