aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_re.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-11-23 11:29:17 +0100
committerPatrik Nyblom <[email protected]>2013-01-23 17:39:34 +0100
commit90b44f551fd3d988b34a9fb7d32598b789a0c546 (patch)
treeda10a18491fc0305d7af776b7fefbee4bc2ca40a /erts/emulator/beam/erl_bif_re.c
parentd43f1a32489e7d22c73f6d6e7a6df59436ad3e17 (diff)
downloadotp-90b44f551fd3d988b34a9fb7d32598b789a0c546.tar.gz
otp-90b44f551fd3d988b34a9fb7d32598b789a0c546.tar.bz2
otp-90b44f551fd3d988b34a9fb7d32598b789a0c546.zip
Fix compiler warnings from GCC 4.7.1 on ARCH Linux
Diffstat (limited to 'erts/emulator/beam/erl_bif_re.c')
-rw-r--r--erts/emulator/beam/erl_bif_re.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_re.c b/erts/emulator/beam/erl_bif_re.c
index 88f980d19f..d00a63967c 100644
--- a/erts/emulator/beam/erl_bif_re.c
+++ b/erts/emulator/beam/erl_bif_re.c
@@ -184,6 +184,7 @@ static Eterm make_signed_integer(int x, Process *p)
#define CAPSPEC_VALUES 0
#define CAPSPEC_TYPE 1
#define CAPSPEC_SIZE 2
+#define CAPSPEC_INIT {0,0}
static int /* 0 == ok, < 0 == error */
parse_options(Eterm listp, /* in */
@@ -864,7 +865,7 @@ re_run(Process *p, Eterm arg1, Eterm arg2, Eterm arg3)
size_t code_size;
Uint loop_limit_tmp;
unsigned long loop_count;
- Eterm capture[CAPSPEC_SIZE];
+ Eterm capture[CAPSPEC_SIZE] = CAPSPEC_INIT;
int is_list_cap;
if (parse_options(arg3,&comp_options,&options,&pflags,&startoffset,capture)