Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static code analysis _034 (Cast Removes const Qualifier) #66

Open
PawelModrzejewski opened this issue Dec 18, 2020 · 0 comments
Open

Static code analysis _034 (Cast Removes const Qualifier) #66

PawelModrzejewski opened this issue Dec 18, 2020 · 0 comments

Comments

@PawelModrzejewski
Copy link
Contributor

Short summary (details in attached file):

.../common/ini.c

/* Return pointer to first non-whitespace char in given string. */  
static char* lskip(const char* s)  
{
    while (*s && isspace(*s))  
        s++;  
    return (char*)s;  
}

This cast loses the const qualifier in conversion.

gptp_034.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant