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

Diff for /mandoc/Attic/mdoc_action.c between version 1.16 and 1.17

version 1.16, 2009/06/17 14:14:51 version 1.17, 2009/06/18 20:46:19
Line 663  post_bl_head(POST_ARGS)
Line 663  post_bl_head(POST_ARGS)
          * column field.  Then, delete the head children.           * column field.  Then, delete the head children.
          */           */
   
         for (i = 0, nn = m->last->child; nn; nn = nn->next, i++)          n->args->argv[c].sz = (size_t)m->last->nchild;
                 /* Count children. */;          n->args->argv[c].value = malloc
                   ((size_t)m->last->nchild * sizeof(char *));
   
         n->args->argv[c].sz = (size_t)i;  
         n->args->argv[c].value = malloc((size_t)i * sizeof(char *));  
   
         for (i = 0, nn = m->last->child; nn; i++) {          for (i = 0, nn = m->last->child; nn; i++) {
                 n->args->argv[c].value[i] = nn->string;                  n->args->argv[c].value[i] = nn->string;
                 nn->string = NULL;                  nn->string = NULL;
Line 677  post_bl_head(POST_ARGS)
Line 675  post_bl_head(POST_ARGS)
                 mdoc_node_free(nnp);                  mdoc_node_free(nnp);
         }          }
   
           m->last->nchild = 0;
         m->last->child = NULL;          m->last->child = NULL;
   
         return(1);          return(1);
 }  }
   

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

CVSweb