diff options
author | ache <ache@FreeBSD.org> | 1997-11-06 01:00:03 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-11-06 01:00:03 +0000 |
commit | d8926c95c3be457db98d447aac09cafab896739a (patch) | |
tree | d819317a8283b33c90f631b0dc82b4ff905f5ec7 | |
parent | 48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3 (diff) | |
download | FreeBSD-src-d8926c95c3be457db98d447aac09cafab896739a.zip FreeBSD-src-d8926c95c3be457db98d447aac09cafab896739a.tar.gz |
Merge changes
-rw-r--r-- | contrib/libreadline/complete.c | 7 | ||||
-rw-r--r-- | contrib/libreadline/readline.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/contrib/libreadline/complete.c b/contrib/libreadline/complete.c index 90bd870..552cb6c 100644 --- a/contrib/libreadline/complete.c +++ b/contrib/libreadline/complete.c @@ -796,7 +796,9 @@ make_quoted_replacement (match, mtype, qc) /* If there is a single match, see if we need to quote it. This also checks whether the common prefix of several matches needs to be quoted. */ - should_quote = rl_strpbrk (match, rl_filename_quote_characters) != 0; + should_quote = rl_filename_quote_characters + ? (rl_strpbrk (match, rl_filename_quote_characters) != 0) + : 0; do_replace = should_quote ? mtype : NO_MATCH; /* Quote the replacement, since we found an embedded @@ -1544,9 +1546,6 @@ rl_strpbrk (string1, string2) { register char *scan; - if (string2 == NULL) - return ((char *)NULL); - for (; *string1; string1++) { for (scan = string2; *scan; scan++) diff --git a/contrib/libreadline/readline.h b/contrib/libreadline/readline.h index bf6c944..de2a038 100644 --- a/contrib/libreadline/readline.h +++ b/contrib/libreadline/readline.h @@ -255,7 +255,7 @@ extern int rl_pending_input; /* Non-zero if we called this function from _rl_dispatch(). It's present so functions can find out whether they were called from a key binding or directly from an application. */ -int rl_dispatching; +extern int rl_dispatching; /* The name of the terminal to use. */ extern char *rl_terminal_name; |