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

Check return values when connecting to/creating a database #2

Merged
merged 6 commits into from
Sep 12, 2024

Conversation

matejmatuska
Copy link
Contributor

This fixes a bug where when establishing a connection to the src database fails (because it's invalid e.g. an empty file), the execution continues on creating the dst database and returning a 0 exit code.

The other 2 commits fix compiler warnings.

This fixes a bug where when establishing a connection to the src
database fails, the execution continues on creating the dst database
and returning a 0 exit code.
This removes compilation warnings about uninitialized values.
This removes warning about deleting an object with a non-virtual
destructor in the base class.
@ikerexxe
Copy link
Contributor

ikerexxe commented Sep 3, 2024

This is a blocker for oamg/leapp-repository#1289

@matejmatuska matejmatuska changed the title Check return values when connecting/creating a database Check return values when connecting to/creating a database Sep 3, 2024
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

Some minor improvements

convert.cc Outdated Show resolved Hide resolved
convert.cc Show resolved Hide resolved
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM!

@fila43 fila43 merged commit c6484cb into fila43:master Sep 12, 2024
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