diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-11-22 05:13:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-11-22 05:13:40 +0000 |
commit | 34e5b459b9ed270fba774af136ad347999c37b86 (patch) | |
tree | 5d61b08c8aaddced9497e9c71136aef0b6cd17cd /gnu | |
parent | b0826017dd714cd9c2637f3f70e05867fafc2222 (diff) |
when following SEE-ALSO in man mode, would SIGSEGV when cursor is at
start of line
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/texinfo/info/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/texinfo/info/session.c b/gnu/usr.bin/texinfo/info/session.c index 2e7818487be..00cdb62dab2 100644 --- a/gnu/usr.bin/texinfo/info/session.c +++ b/gnu/usr.bin/texinfo/info/session.c @@ -1,5 +1,5 @@ /* session.c -- The user windowing interface to Info. - $Id: session.c,v 1.2 1999/01/11 16:38:09 espie Exp $ + $Id: session.c,v 1.3 1999/11/22 05:13:39 deraadt Exp $ Copyright (C) 1993, 96, 97 Free Software Foundation, Inc. @@ -1912,6 +1912,8 @@ info_menu_or_ref_item (window, count, key, builder, ask_p) which = closest; } + if (which < 0) + which = 0; defentry = (REFERENCE *)xmalloc (sizeof (REFERENCE)); defentry->label = xstrdup (refs[which]->label); defentry->filename = refs[which]->filename; |