Return to mdoc_validate.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.289, 2015/04/19 14:25:41 | version 1.290, 2015/04/20 09:48:53 | ||
---|---|---|---|
|
|
||
/* Check that we begin with a proper `Sh'. */ | /* Check that we begin with a proper `Sh'. */ | ||
n = mdoc->first->child; | n = mdoc->first->child; | ||
while (n != NULL && mdoc_macros[n->tok].flags & MDOC_PROLOGUE) | while (n != NULL && n->tok != TOKEN_NONE && | ||
mdoc_macros[n->tok].flags & MDOC_PROLOGUE) | |||
n = n->next; | n = n->next; | ||
if (n == NULL) | if (n == NULL) |