Move home variable into readline ifdef

This commit is contained in:
Carson McDonald
2013-07-22 18:24:17 -04:00
parent 29a3f8b8e3
commit 8db22d4dfe
+2 -1
View File
@@ -244,6 +244,8 @@ main(int argc, char **argv)
#ifndef ENABLE_READLINE
int last_char;
int char_index;
#else
char *home = NULL;
#endif
mrbc_context *cxt;
struct mrb_parser_state *parser;
@@ -253,7 +255,6 @@ main(int argc, char **argv)
int n;
int code_block_open = FALSE;
int ai;
char *home = NULL;
/* new interpreter instance */
mrb = mrb_open();