diff options
author | John Kohl <jtkohl@mit.edu> | 1989-12-15 04:53:40 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-12-15 04:53:40 +0000 |
commit | 247172ac1f7f061387811d38a25d22cb2daeacc2 (patch) | |
tree | e4301b4641ec08e5642127c87ee40028b407518e /zwgc | |
parent | d6fa897c9ce6e57b8d0f393abd057d2a4587f922 (diff) |
fixes to get default subscriptions when user has no private subs.
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/subscriptions.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/zwgc/subscriptions.c b/zwgc/subscriptions.c index aeaed60..b7f6c40 100644 --- a/zwgc/subscriptions.c +++ b/zwgc/subscriptions.c @@ -165,7 +165,6 @@ static void free_subscription_list(list, number_of_elements) static void flush_subscriptions() { - if (subscription_list_size) TRAP(ZSubscribeTo(subscription_list,subscription_list_size, 0), "while subscribing"); @@ -321,13 +320,17 @@ static void load_subscriptions_from_file(file) fclose(file); } +#define DEFSUBS "/dev/null" + static void load_subscriptions() { FILE *subscriptions_file; /* no system default sub file on client--they live on the server */ + /* BUT...we need to use something to call load_subscriptions_from_file, + so we use /dev/null */ subscriptions_file = locate_file(subscriptions_filename_override, - USRSUBS, NULL); + USRSUBS, DEFSUBS); if (subscriptions_file) load_subscriptions_from_file(subscriptions_file); } |