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

lib: Fix uninitialized variable 'encoding' in parser_interface.c #3975

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes an issue in parser_interface.c where the variable encoding was used without being initialized. The change initializes encoding to NULL to ensure it is properly set before use.

Changes Made:

  • Initialize encoding to NULL

@github-actions github-actions bot added C Related code is in C libraries labels Jul 2, 2024
Copy link
Member

@echoix echoix left a comment

Choose a reason for hiding this comment

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

Looks fine to me, and proxying @lbartoletti's approval

@echoix echoix merged commit cb1e9b3 into OSGeo:main Jul 4, 2024
26 checks passed
@echoix echoix added this to the 8.5.0 milestone Jul 4, 2024
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
…eo#3975)

Fix uninitialized variable 'encoding' in parser_interface.c

Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm178-253.vcl.ncsu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants