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

[Backport release/3.10] MiraMonVector fix error: Unexpected Non-nullptr Return #11900

Merged
merged 1 commit into from
Mar 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ogr/ogrsf_frmts/miramon/mm_wrlayr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5315,7 +5315,16 @@ char *MMReturnValueFromSectionINIFile(const char *filename, const char *section,
}
else
{
value = section_header; // Freed out
if (section_header)
{
if (!strcmp(section_header, section))
value = section_header; // Freed out
else
value = nullptr;
}
else
value = nullptr;

fclose_function(file);
free_function(pszString);
return value;
Expand Down Expand Up @@ -6079,6 +6088,7 @@ int MMCheck_REL_FILE(const char *szREL_file)
MMCPLError(CE_Failure, CPLE_OpenFailed,
"The file \"%s\" must be REL4. "
"You can use ConvREL.exe from MiraMon software "
" or GeM+ "
"to convert this file to REL4.",
szREL_file);
return 1;
Expand Down
Loading