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

Diff for /src/usr.bin/mail/cmd2.c between version 1.21 and 1.22

version 1.21, 2014/03/16 18:38:30 version 1.22, 2015/10/16 17:56:07
Line 392 
Line 392 
                 if (member(field, tab))                  if (member(field, tab))
                         continue;                          continue;
                 h = hash(field);                  h = hash(field);
                 igp = (struct ignore *)calloc(1, sizeof(struct ignore));                  igp = calloc(1, sizeof(struct ignore));
                 if (igp == NULL)                  if (igp == NULL)
                         errx(1, "Out of memory");                          err(1, "calloc");
                 igp->i_field = strdup(field);                  igp->i_field = strdup(field);
                 if (igp->i_field == NULL)                  if (igp->i_field == NULL)
                         errx(1, "Out of memory");                          err(1, "strdup");
                 igp->i_link = tab->i_head[h];                  igp->i_link = tab->i_head[h];
                 tab->i_head[h] = igp;                  tab->i_head[h] = igp;
                 tab->i_count++;                  tab->i_count++;

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