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

Diff for /src/usr.bin/mandoc/chars.c between version 1.16 and 1.17

version 1.16, 2011/01/30 16:05:29 version 1.17, 2011/04/21 22:59:54
Line 88 
Line 88 
          * (they're in-line re-ordered during lookup).           * (they're in-line re-ordered during lookup).
          */           */
   
         tab = malloc(sizeof(struct ctab));          tab = mandoc_malloc(sizeof(struct ctab));
         if (NULL == tab) {          htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));
                 perror(NULL);  
                 exit((int)MANDOCLEVEL_SYSERR);  
         }  
   
         htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));  
         if (NULL == htab) {  
                 perror(NULL);  
                 exit((int)MANDOCLEVEL_SYSERR);  
         }  
   
         for (i = 0; i < LINES_MAX; i++) {          for (i = 0; i < LINES_MAX; i++) {
                 hash = (int)lines[i].code[0] - PRINT_LO;                  hash = (int)lines[i].code[0] - PRINT_LO;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17