I've committed a slightly tweaked version of your diff:

diff /usr/src
commit - 17d31bf3ed9de46ea3449b69914ea1ac97418884
path + /usr/src
blob - f2976f9ac9b98c51cebae458ccd266c6442181bb
file + usr.bin/mg/tags.c
--- usr.bin/mg/tags.c
+++ usr.bin/mg/tags.c
@@ -369,12 +369,12 @@ addctag(char *l)
 int
 addctag(char *l)
 {
-       struct ctag *t;
+       struct ctag *t = NULL;
        
        if ((t = malloc(sizeof(struct ctag))) == NULL) {
                dobeep();
                ewprintf("Out of memory");
-               return (FALSE);
+               goto cleanup;
        }
        t->tag = l;
        if ((l = strchr(l, '\t')) == NULL)


Thanks!

Reply via email to