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

Diff for /mandoc/chars.c between version 1.10 and 1.11

version 1.10, 2009/10/30 18:43:24 version 1.11, 2009/10/31 06:10:57
Line 91  chars_init(enum chars type)
Line 91  chars_init(enum chars type)
   
         tab = malloc(sizeof(struct tbl));          tab = malloc(sizeof(struct tbl));
         if (NULL == tab) {          if (NULL == tab) {
                 fprintf(stderr, "memory exhausted\n");                  perror(NULL);
                 exit(EXIT_FAILURE);                  exit(EXIT_FAILURE);
         }          }
   
         htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));          htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));
         if (NULL == htab) {          if (NULL == htab) {
                 fprintf(stderr, "memory exhausted\n");                  perror(NULL);
                 exit(EXIT_FAILURE);                  exit(EXIT_FAILURE);
         }          }
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb