realpath.3 wording

Timo Buhrmester <[email protected]> Mon, 20 Feb 2017 15:02:49 +0100
Newsgroups gmane.os.netbsd.documentation
Message-ID <[email protected]>
> If an error occurs, realpath() returns NULL,
> and resolvedname was not allocated by realpath(),
> it will contain the pathname which caused the problem.
Had to read it thrice before it made sense.  Maybe this is slightly better:

--- lib/libc/gen/realpath.3.orig
+++ lib/libc/gen/realpath.3
@@ -88,8 +88,8 @@ on success.
 If an error occurs,
 .Fn realpath
 returns
-.Dv NULL ,
-and
+.Dv NULL ;
+if
 .Fa resolvedname
 was not allocated by
 .Fn realpath ,