1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fix: Do not initialize char* with an integer

AUTH_ALTER_NOOP is 0, which is not necessarily equivalent to
a NULL pointer, causing the compiler to complain about this
assignment. And logically it seems not the right thing either
as failed_arg and deny_arg will not hold an AUTH_ALTER_* enum
value but a string.
This commit is contained in:
Marvin Scholz 2021-05-08 17:18:20 +02:00
parent 355d7e976b
commit fde473477b

View File

@ -817,8 +817,8 @@ auth_t *auth_get_authenticator(xmlNodePtr node)
auth->management_url = (char*)xmlGetProp(node, XMLSTR("management-url"));
auth->filter_web_policy = AUTH_MATCHTYPE_MATCH;
auth->filter_admin_policy = AUTH_MATCHTYPE_MATCH;
auth->failed_arg = AUTH_ALTER_NOOP;
auth->deny_arg = AUTH_ALTER_NOOP;
auth->failed_arg = NULL;
auth->deny_arg = NULL;
for (i = 0; i < (sizeof(auth->filter_admin)/sizeof(*(auth->filter_admin))); i++) {
auth->filter_admin[i].type = AUTH_MATCHTYPE_UNUSED;