mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05: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:
parent
355d7e976b
commit
fde473477b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user