summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 205e9854fb..1525231a87 100644
--- a/debug.c
+++ b/debug.c
@@ -380,7 +380,7 @@ ruby_debug_log(const char *file, int line, const char *func_name, const char *fm
{
char buff[MAX_DEBUG_LOG_MESSAGE_LEN] = {0};
int len = 0;
- int r;
+ int r = 0;
// message title
if (func_name && len < MAX_DEBUG_LOG_MESSAGE_LEN) {