mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
BUILD: pattern: silence a warning about uninitialized value
Gcc 3.4 warns that mask may be used uninitialized in pattern.c. This
is wrong since it's used in the same condition as its assignment,
although it's not necessarily obvious for the compiler. Fix this by
initializing the value.
This was introduced by recent commit 01cdcd4a
so no backport is needed.
This commit is contained in:
parent
6173bbee08
commit
668ae532b9
@ -1117,7 +1117,7 @@ int pattern_lookup(const char *key, struct pattern_expr *expr,
|
||||
struct pat_idx_elt *elt;
|
||||
const char *args[2];
|
||||
int opaque = 0;
|
||||
unsigned int mask;
|
||||
unsigned int mask = 0;
|
||||
|
||||
/* no real pattern */
|
||||
if (!expr->match || expr->match == pat_match_nothing)
|
||||
|
Loading…
Reference in New Issue
Block a user