diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-08 10:32:28 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-08 10:32:28 +0000 |
commit | a2a9da11fbc474807f8851d156acb9fa3bae8ea7 (patch) | |
tree | 9aeca986f651bcbc73c3832266fecf3450fb0606 /server/subscr.c | |
parent | ac84eab4a63af3f42eebed29d74bef50471992bd (diff) |
remove erroneous free/allocs for default subscriptiosn.
We want the pointers to be into static (well, pseudo-static) storage
so the caller only needs to free the subscription chain.
(besides, extract_subscription has stuff point into the middle of a packet
anyway)
Diffstat (limited to 'server/subscr.c')
-rw-r--r-- | server/subscr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/subscr.c b/server/subscr.c index d0e5eee..31fd140 100644 --- a/server/subscr.c +++ b/server/subscr.c @@ -331,13 +331,10 @@ char *person; for (subs2 = subs->q_forw; subs2 != subs; subs2 = subs2->q_forw) /* if not a wildcard, replace it with person */ if (strcmp(subs2->zst_recipient, "*")) { - xfree(subs2->zst_recipient); - subs2->zst_recipient = strsave(person); + subs2->zst_recipient = person; } else { /* replace with null recipient */ - xfree(subs2->zst_recipient); - subs2->zst_recipient = strsave(""); + subs2->zst_recipient = ""; } - return(subs); } |