summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 8236d5a5f1..a313271b3a 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -75,7 +75,7 @@ static char **readline_attempted_completion_function(const char *text,
#define OutputStringValue(str) do {\
SafeStringValue(str);\
- str = rb_str_conv_enc(str, rb_enc_get(str), rb_locale_encoding());\
+ (str) = rb_str_conv_enc((str), rb_enc_get(str), rb_locale_encoding());\
} while (0)\