>Number: 6374
>Category: documentation
>Synopsis: editline(3) does not state that el_init() returns NULL on
>failure
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Sun May 09 07:20:01 GMT 2010
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
System : OpenBSD 4.7
Details : OpenBSD 4.7-current (GENERIC.MP) #227: Wed Apr 28
11:55:45 MDT 2010
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
editline(3) should specify that el_init returns
NULL on failure
>How-To-Repeat:
man editline
>Fix:
apply patch along the lines of:
--- editline.3.orig Sun May 9 02:59:53 2010
+++ editline.3 Sun May 9 03:01:31 2010
@@ -112,7 +112,9 @@ The following functions are available:
.Bl -tag -width 4n
.It Fn el_init
Initialise the line editor, and return a data structure
-to be used by all other line editing functions.
+to be used by all other line editing functions, or
+.Dv NULL
+on failure.
.Fa prog
is the name of the invoking program, used when reading the
.Xr editrc 5
>Release-Note:
>Audit-Trail:
>Unformatted: