snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit e2a410ca51fdec964b8584939c039f9a813f79e4
parent 7a743f584e7f8a722e6be3c60173848db2646b0f
Author: default <nobody@localhost>
Date:   Tue, 11 Oct 2022 09:01:48 +0200

Deleted useless code.

Diffstat:
Mhtml.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/html.c b/html.c @@ -717,15 +717,12 @@ d_char *html_timeline(snac *snac, char *list, int local) int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype) { - int status; + int status = 404; snac snac; char *uid, *p_path; int cache = 1; char *v; - status = 404; - *ctype = NULL; - xs *l = xs_split_n(q_path, "/", 2); uid = xs_list_get(l, 1);