Dumped core when prompt == NULL
This commit is contained in:
parent
426de76026
commit
d111a6bea7
@ -278,7 +278,8 @@ readline (prompt)
|
||||
return ((char *)NULL);
|
||||
}
|
||||
|
||||
rl_visible_prompt_length = rl_expand_prompt (rl_prompt);
|
||||
if (rl_prompt != NULL)
|
||||
rl_visible_prompt_length = rl_expand_prompt (rl_prompt);
|
||||
|
||||
rl_initialize ();
|
||||
rl_prep_terminal (_rl_meta_flag);
|
||||
|
Loading…
Reference in New Issue
Block a user