Merge pull request #100 from aigjermo/master
catch NULL input in interpreter_chat_mode
This commit is contained in:
commit
d0d53dc292
1 changed files with 2 additions and 1 deletions
|
@ -560,7 +560,8 @@ void work_modifier (const char *s, int l) {
|
|||
|
||||
|
||||
void interpreter_chat_mode (char *line) {
|
||||
if (!strncmp (line, "/exit", 5) || !strncmp (line, "/quit", 5)) {
|
||||
if (line == NULL || /* EOF received */
|
||||
!strncmp (line, "/exit", 5) || !strncmp (line, "/quit", 5)) {
|
||||
in_chat_mode = 0;
|
||||
update_prompt ();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue