1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[mailcap] silence compiler warning about get_mailcap_path() const qualifier

it's declared "const char *path" in "struct option_init", but we're
using it as char *, so cast it
This commit is contained in:
Scott Mcdermott 2024-04-08 02:14:19 -07:00
parent d1621e7230
commit afc5ac5deb

View File

@ -416,7 +416,7 @@ init_mailcap_map(void)
if (!mailcap_map) return NULL;
/* Try to setup mailcap_path */
path = get_mailcap_path();
path = (char *)get_mailcap_path();
if (!path || !*path) path = getenv("MAILCAP");
if (!path) path = (char *)DEFAULT_MAILCAP_PATH;