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

Diff for /mandoc/html.c between version 1.74 and 1.75

version 1.74, 2009/10/30 18:53:08 version 1.75, 2009/10/31 06:10:57
Line 101  html_alloc(char *outopts)
Line 101  html_alloc(char *outopts)
   
         h = calloc(1, sizeof(struct html));          h = calloc(1, sizeof(struct html));
         if (NULL == h) {          if (NULL == h) {
                 fprintf(stderr, "memory exhausted\n");                  perror(NULL);
                 exit(EXIT_FAILURE);                  exit(EXIT_FAILURE);
         }          }
   
Line 354  print_otag(struct html *h, enum htmltag tag, 
Line 354  print_otag(struct html *h, enum htmltag tag, 
         if ( ! (HTML_NOSTACK & htmltags[tag].flags)) {          if ( ! (HTML_NOSTACK & htmltags[tag].flags)) {
                 t = malloc(sizeof(struct tag));                  t = malloc(sizeof(struct tag));
                 if (NULL == t) {                  if (NULL == t) {
                         fprintf(stderr, "memory exhausted\n");                          perror(NULL);
                         exit(EXIT_FAILURE);                          exit(EXIT_FAILURE);
                 }                  }
                 t->tag = tag;                  t->tag = tag;

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

CVSweb