diff options
| -rw-r--r-- | bin/sh/histedit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 04b883be236d..b369050af7c5 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: histedit.c,v 1.2 1994/09/24 02:57:36 davidg Exp $ */ #ifndef lint @@ -389,6 +389,10 @@ fc_replace(s, p, r) not_fcnumber(s) char *s; { + if (s == NULL) { + /* NULL is not a fc_number */ + return (1); + } if (*s == '-') s++; return (!is_number(s)); |
