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

Fix issues reported by clang static analysis #895

Merged
merged 1 commit into from
Apr 27, 2020
Merged

Fix issues reported by clang static analysis #895

merged 1 commit into from
Apr 27, 2020

Conversation

aggarg
Copy link
Member

@aggarg aggarg commented Apr 26, 2020

The following issues were reported:

  1. Uninitialized variable in aws_iot_mqtt_internal_send_packet function resulted in garbage return value.
  2. currentState variable in aws_iot_mqtt_attempt_reconnect was not used.
  3. Return value from aws_iot_jobs_send_query function was not checked in the jobs sample.

This commit addresses the above issues.

These were reported here: #882

Signed-off-by: Gaurav Aggarwal [email protected]

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The following issues were reported:

1. Uninitialized variable in aws_iot_mqtt_internal_send_packet function
resulted in garbage return value.
2. currentState variable in aws_iot_mqtt_attempt_reconnect was not used.
3. Return value from aws_iot_jobs_send_query function was not checked in
the jobs sample.

This commit addresses the above issues.

These were reported here: #882

Signed-off-by: Gaurav Aggarwal <[email protected]>
@aggarg aggarg merged commit f50ae30 into aws:master Apr 27, 2020
@aggarg aggarg deleted the static_analysis_fixes branch April 27, 2020 17:43
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.

3 participants