Browse Source

Fixed crash in rss_from_timeline().

grunfink 3 months ago
parent
commit
aa7549b14f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rss.c

+ 1 - 1
rss.c

@@ -44,7 +44,7 @@ xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
     int cnt = 0;
     int cnt = 0;
     const char *v;
     const char *v;
 
 
-    int show_unlisted = xs_is_true(xs_dict_get(user->config, "show_unlisted"));
+    int show_unlisted = user ? xs_is_true(xs_dict_get(user->config, "show_unlisted")) : 0;
 
 
     xs_list_foreach(timeline, v) {
     xs_list_foreach(timeline, v) {
         xs *msg = NULL;
         xs *msg = NULL;