We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While implementing registry parsing in my implementation, I saw this sus code:
libxkbcommon/src/registry.c
Line 899 in d706e64
Comparing v->name and config->name looks incorrect given that
v->name
config->name
Line 910 in d706e64
The text was updated successfully, but these errors were encountered:
It’s not the same v, see:
v
Line 906 in d706e64
Sorry, something went wrong.
But surely in the if, the v is the same both left and right of the &&.
if
&&
Shouldn’t we have:
- if (streq(v->name, config.name) && streq(v->name, l->name)) { + if (streq(v->variant, config.name) && streq(v->name, l->name)) {
?
That is my thinking as well except that v->variant might be null iirc.
v->variant
Successfully merging a pull request may close this issue.
While implementing registry parsing in my implementation, I saw this sus code:
libxkbcommon/src/registry.c
Line 899 in d706e64
Comparing
v->name
andconfig->name
looks incorrect given thatlibxkbcommon/src/registry.c
Line 910 in d706e64
The text was updated successfully, but these errors were encountered: