Skip to content

Conversation

@yamt
Copy link

@yamt yamt commented Jul 29, 2020

Found by clang-check.
(the last one looks like a false-positive to me)

parson.c:995:17: warning: Value stored to 'buf' is never read
buf += written;
^ ~~~~~~~
parson.c:1016:17: warning: Value stored to 'buf' is never read
buf += written;
^ ~~~~~~~
parson.c:1834:24: warning: Array access (via field 'names') results in a null pointer dereference
if (strcmp(object->names[i], name) == 0) {
^~~~~~~~~~~~~~~~
3 warnings generated.

Found by clang-check.
(the last one looks like a false-positive to me)

parson.c:995:17: warning: Value stored to 'buf' is never read
                buf += written;
                ^      ~~~~~~~
parson.c:1016:17: warning: Value stored to 'buf' is never read
                buf += written;
                ^      ~~~~~~~
parson.c:1834:24: warning: Array access (via field 'names') results in a null pointer dereference
            if (strcmp(object->names[i], name) == 0) {
                       ^~~~~~~~~~~~~~~~
3 warnings generated.
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

Successfully merging this pull request may close these issues.

1 participant