Skip to content
Snippets Groups Projects
Commit 68eb35b8 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avstring: fix return discards qualifiers from pointer target type.

parent 107460c1
No related branches found
No related tags found
No related merge requests found
......@@ -51,11 +51,11 @@ int av_stristart(const char *str, const char *pfx, const char **ptr)
char *av_stristr(const char *s1, const char *s2)
{
if (!*s2)
return s1;
return (char*)(intptr_t)s1;
do {
if (av_stristart(s1, s2, NULL))
return s1;
return (char*)(intptr_t)s1;
} while (*s1++);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment