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

Null reference initialization #1845

Merged
merged 4 commits into from
Dec 23, 2022
Merged

Null reference initialization #1845

merged 4 commits into from
Dec 23, 2022

Conversation

rawalexe
Copy link
Member

@rawalexe rawalexe commented Dec 23, 2022

Issue #, if available:
segmentation fault on shadow demo #1843

Description of changes:
Initializes the uninitialized TransportInterface_t transport variable to prevent seg fault.

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

@rawalexe rawalexe requested a review from a team as a code owner December 23, 2022 00:26
@@ -22,7 +22,7 @@ list(APPEND PKCS_SOURCES
)

# CPP files are searched for supporting CI build checks that verify C++ linkage of the Fleet Provisioning library
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment makes zero sense.

@@ -22,7 +22,7 @@ list(APPEND PKCS_SOURCES
)

# CPP files are searched for supporting CI build checks that verify C++ linkage of the Fleet Provisioning library
file( GLOB DEMO_SRCS "*.c*" )
file( GLOB DEMO_SRCS "mqtt_operations.c" "*.c*" )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should stop using globs and just list the files for improved clarity.

@paulbartell
Copy link
Member

There is still an instance of an uninitialized TransportInterface_t in mqtt_demo_subscription_manager.c.

@rawalexe rawalexe merged commit c702694 into aws:main Dec 23, 2022
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