summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-01-13 17:22:34 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-13 17:40:41 -0700
commite5355af71b2544dc8179d46621910ba690725689 (patch)
tree173b53cafcea6b509794572c59e524dc52d06167 /regcomp.c
parentbe022d23b5dec6da05d4e0b83699b87d88e8e3aa (diff)
downloadperl-e5355af71b2544dc8179d46621910ba690725689.tar.gz
regcomp.c: Silence compiler warning
Some compilers say this can be used uninitialized. I don't believe them, but silencing them will save effort in the long run.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 53e84f8076..c0a37b265b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -10656,7 +10656,8 @@ tryagain:
}
case 'x':
{
- UV result;
+ UV result = UV_MAX; /* initialize to erroneous
+ value */
const char* error_msg;
bool valid = grok_bslash_x(&p,