]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_validate.c
Sync section titles with OpenBSD.
[mandoc.git] / mdoc_validate.c
index 78b64cf0a5bdfa3b96d1563c93a9056f2991cacc..15397b926a86ec2b48044d0b7e3c6785cf89322a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_validate.c,v 1.243 2014/08/06 15:09:05 schwarze Exp $ */
+/*     $Id: mdoc_validate.c,v 1.245 2014/08/19 17:31:55 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
+#include <sys/types.h>
 #ifndef OSNAME
 #include <sys/utsname.h>
 #endif
 
-#include <sys/types.h>
-
 #include <assert.h>
 #include <ctype.h>
 #include <limits.h>
@@ -532,7 +529,7 @@ pre_bl(PRE_ARGS)
         * ones.  If we find no list type, we default to LIST_item.
         */
 
-       wa = n->args->argv;
+       wa = (n->args == NULL) ? NULL : n->args->argv;
        mdoclt = MDOC_ARG_MAX;
        for (i = 0; n->args && i < (int)n->args->argc; i++) {
                argv = n->args->argv + i;