diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c index 4a3c5434c7..75a38c6852 100644 --- a/source3/lib/readline.c +++ b/source3/lib/readline.c @@ -52,7 +52,7 @@ char *smb_readline(char *prompt, void (*callback)(void), rl_attempted_completion_function = completion_fn; } - rl_event_hook = (Function *)callback; + if (callback) rl_event_hook = (Function *)callback; ret = readline(prompt); if (ret && *ret) add_history(ret); return ret; |