aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 01a24ea76c..428f5f46b8 100644
--- a/thread.c
+++ b/thread.c
@@ -1217,7 +1217,7 @@ rb_thread_call_without_gvl(void *(*func)(void *data), void *data1,
VALUE
rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd)
{
- VALUE val;
+ VALUE val = Qundef; /* shouldn't be used */
rb_thread_t *th = GET_THREAD();
int saved_errno = 0;
int state;