[BACK]Return to man_validate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/man_validate.c between version 1.123 and 1.124

version 1.123, 2020/04/18 20:28:46 version 1.124, 2020/04/24 11:58:02
Line 508 
Line 508 
   
         if (n != NULL)          if (n != NULL)
                 n = n->next;                  n = n->next;
         if (n != NULL && n->string != NULL)          if (n != NULL && n->string != NULL) {
                 man->meta.msec = mandoc_strdup(n->string);                  man->meta.msec = mandoc_strdup(n->string);
         else {                  if (man->filesec != '\0' &&
                       man->filesec != *n->string &&
                       *n->string >= '1' && *n->string <= '9')
                           mandoc_msg(MANDOCERR_MSEC_FILE, n->line, n->pos,
                               "*.%c vs TH ... %c", man->filesec, *n->string);
           } else {
                 man->meta.msec = mandoc_strdup("");                  man->meta.msec = mandoc_strdup("");
                 mandoc_msg(MANDOCERR_MSEC_MISSING,                  mandoc_msg(MANDOCERR_MSEC_MISSING,
                     nb->line, nb->pos, "TH %s", man->meta.title);                      nb->line, nb->pos, "TH %s", man->meta.title);

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.124