0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[strrchr] Drop cast to const char *

This commit is contained in:
Witold Filipczyk
2022-01-18 20:42:29 +01:00
parent 7b77d84626
commit e62b301657
10 changed files with 12 additions and 12 deletions

View File

@@ -535,7 +535,7 @@ ecmascript_set_action(char **action, char *string)
done_uri(uri);
mem_free(string);
} else { /* relative uri */
char *last_slash = strrchr((const char *)*action, '/');
char *last_slash = strrchr(*action, '/');
char *new_action;
if (last_slash) *(last_slash + 1) = '\0';