mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[httpd] Remove needless test (always true)
This commit is contained in:
parent
093708ff97
commit
580ba924a4
@ -273,7 +273,7 @@ modules_search(const char *path)
|
|||||||
for (ptr = httpd_modules; *ptr; ptr++)
|
for (ptr = httpd_modules; *ptr; ptr++)
|
||||||
{
|
{
|
||||||
m = *ptr;
|
m = *ptr;
|
||||||
if (!m->subpaths || !m->request)
|
if (!m->request)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (test = m->subpaths; *test && !is_found; test++)
|
for (test = m->subpaths; *test && !is_found; test++)
|
||||||
|
@ -120,7 +120,7 @@ struct httpd_module
|
|||||||
|
|
||||||
// Null-terminated list of URL subpath that the module accepts e.g., /subpath/morepath/file.mp3
|
// Null-terminated list of URL subpath that the module accepts e.g., /subpath/morepath/file.mp3
|
||||||
const char *subpaths[16];
|
const char *subpaths[16];
|
||||||
// Null-terminated list of URL fullparhs that the module accepts e.g., /fullpath
|
// Null-terminated list of URL fullpaths that the module accepts e.g., /fullpath
|
||||||
const char *fullpaths[16];
|
const char *fullpaths[16];
|
||||||
// Pointer to the module's handler definitions
|
// Pointer to the module's handler definitions
|
||||||
struct httpd_uri_map *handlers;
|
struct httpd_uri_map *handlers;
|
||||||
|
Loading…
Reference in New Issue
Block a user