diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-18 09:11:54 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-18 09:11:54 +0900 |
| commit | 5568df5efee7a7220008227ea622121320c2b49b (patch) | |
| tree | 729ae20519f664d2150900e6efbb6ae63fae7626 /tools | |
| parent | df38a31d3438284ff73fa691b13cb4d0a77e6520 (diff) | |
| parent | b04183fd9cc0297005fbe378d2c136516999b82a (diff) | |
| download | mruby-5568df5efee7a7220008227ea622121320c2b49b.tar.gz mruby-5568df5efee7a7220008227ea622121320c2b49b.zip | |
:Merge branch 'master' of github.com:mruby/mruby
Conflicts:
src/class.c
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mirb/mirb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 85c3249d2..29685cf28 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -191,6 +191,10 @@ main(void) last_code_line[char_index] = '\0'; #else char* line = readline(code_block_open ? "* " : "> "); + if(line == NULL) { + printf("\n"); + break; + } strncat(last_code_line, line, sizeof(last_code_line)-1); add_history(line); free(line); |
