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:
Willy Tarreau 2025-03-14 18:28:32 +01:00
parent 4e09789644
commit ed75148ca0

View File

@ -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;