summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index f35f24bb68..d982744dab 100644
--- a/random.c
+++ b/random.c
@@ -1053,7 +1053,7 @@ static VALUE
random_rand(int argc, VALUE *argv, VALUE obj)
{
rb_random_t *rnd = get_rnd(obj);
- VALUE vmax, beg = Qundef, end, v;
+ VALUE vmax, beg = Qundef, end = Qundef, v;
int excl = 0;
if (argc == 0) {