Return to tags.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.20, 2023/03/22 18:10:07 | version 1.21, 2023/03/22 18:18:35 | ||
---|---|---|---|
|
|
||
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) |