X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fsubscription.c;h=c1633fea1c994cc297e2a782e6a84452aee89e82;hb=948ce5be6ef6bba36edfb544565ca22e316afb0a;hp=aac7acf9f000a71e2e8cacb9720b6316da91d8c5;hpb=c38b2e192d8de8ef38389cc8071881464fff99bb;p=blerg.git diff --git a/database/subscription.c b/database/subscription.c index aac7acf..c1633fe 100644 --- a/database/subscription.c +++ b/database/subscription.c @@ -88,12 +88,12 @@ struct blergref * subscription_list(const char *author, uint64_t offset, int *co int feed_fd = open(filename, O_RDONLY); if (feed_fd == -1) { perror("Could not open subscription feed"); - goto subscription_list_map_failed; + goto subscription_list_open_failed; } fstat(feed_fd, &st); if (st.st_size == 0) { - close(feed_fd); + fprintf(stderr, "Feed is empty\n"); goto subscription_list_map_failed; } n_subscription_records = st.st_size / sizeof(struct blergref);