[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.73 and 1.74

version 1.73, 2013/10/18 23:07:23 version 1.74, 2013/10/27 16:09:44
Line 836  ofadd(int dform, const char *file, const char *name, c
Line 836  ofadd(int dform, const char *file, const char *name, c
         if (NULL == arch)          if (NULL == arch)
                 arch = "";                  arch = "";
   
         sform = FORM_NONE;          if ('0' == *sec) {
         if (NULL != sec && *sec <= '9' && *sec >= '1')  
                 sform = FORM_SRC;  
         else if (NULL != sec && *sec == '0') {  
                 sec = dsec;                  sec = dsec;
                 sform = FORM_CAT;                  sform = FORM_CAT;
         }          } else if ('1' <= *sec && '9' >= *sec)
                   sform = FORM_SRC;
           else
                   sform = FORM_NONE;
   
         of = mandoc_calloc(1, sizeof(struct of));          of = mandoc_calloc(1, sizeof(struct of));
         strlcpy(of->file, file, PATH_MAX);          strlcpy(of->file, file, PATH_MAX);

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

CVSweb