summaryrefslogtreecommitdiff
path: root/source3/lib/readline.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-19 00:32:16 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-19 00:32:16 +0000
commit62711a9ceb375fef2c0af0f649d8c77eb94483f9 (patch)
tree95da07c42da5cd782c7db3272da490204db2975c /source3/lib/readline.c
parente17e7b64175dcfc9963405a9fa3724f8d7097d89 (diff)
downloadsamba-62711a9ceb375fef2c0af0f649d8c77eb94483f9.tar.gz
samba-62711a9ceb375fef2c0af0f649d8c77eb94483f9.tar.bz2
samba-62711a9ceb375fef2c0af0f649d8c77eb94483f9.zip
fixed rpcclient readline code
(This used to be commit 4ec971e905cefada5f3980a25781730acdbf4469)
Diffstat (limited to 'source3/lib/readline.c')
-rw-r--r--source3/lib/readline.c2
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;