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

Diff for /src/usr.bin/mg/tags.c between version 1.20 and 1.21

version 1.20, 2023/03/22 18:10:07 version 1.21, 2023/03/22 18:18:35
Line 369 
Line 369 
 int  int
 addctag(char *l)  addctag(char *l)
 {  {
         struct ctag *t;          struct ctag *t = NULL;
   
         if ((t = malloc(sizeof(struct ctag))) == NULL) {          if ((t = malloc(sizeof(struct ctag))) == NULL) {
                 dobeep();                  dobeep();
                 ewprintf("Out of memory");                  ewprintf("Out of memory");
                 return (FALSE);                  goto cleanup;
         }          }
         t->tag = l;          t->tag = l;
         if ((l = strchr(l, '\t')) == NULL)          if ((l = strchr(l, '\t')) == NULL)

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21