From: Oto Šťáva Date: Mon, 27 Jun 2022 05:37:58 +0000 (+0200) Subject: nit: daemon/http: remove dead code X-Git-Tag: v5.5.2~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b7afb1da866e163f7e6a0e089e948644032260a;p=thirdparty%2Fknot-resolver.git nit: daemon/http: remove dead code --- diff --git a/daemon/http.c b/daemon/http.c index 3347aa6f4..421d5b403 100644 --- a/daemon/http.c +++ b/daemon/http.c @@ -231,9 +231,6 @@ static int process_uri_path(struct http_ctx *ctx, const char* path, int32_t stre uint8_t *dest; uint32_t remaining; - if (!path) - return kr_error(EINVAL); - char *query_mark = strstr(path, "?"); if (!query_mark || strlen(query_mark) == 0) /* no parameters in path */ return kr_error(EINVAL);