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

Address some cppcheck warnings #470

Merged
merged 8 commits into from
Mar 19, 2024
Merged

Address some cppcheck warnings #470

merged 8 commits into from
Mar 19, 2024

Conversation

sshedi
Copy link
Contributor

@sshedi sshedi commented Mar 14, 2024

No description provided.

Copy link
Contributor

@oliverkurth oliverkurth left a comment

Choose a reason for hiding this comment

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

Just a few minor comments, but you need to fix the CI failures.

llconf/modules.c Outdated
int ret = -1;

if(fname == NULL)
fname = cm->default_file;
if(fname){
FILE *fout;
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks misaligned

BAIL_ON_TDNF_ERROR(elementInfo->dwError);
}
pr_err("%s:%d elementInfo is NULL\n", __func__, __LINE__);
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catching the NULL pointer check, but I think there should be a BAIL_ON_TDNF_ERROR here.

@sshedi sshedi force-pushed the misc-fixes branch 2 times, most recently from 8028564 to 4434299 Compare March 17, 2024 06:58
sshedi added 8 commits March 17, 2024 12:45
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
Signed-off-by: Shreenidhi Shedi <[email protected]>
@oliverkurth oliverkurth merged commit 1205266 into vmware:dev Mar 19, 2024
3 checks passed
@oliverkurth
Copy link
Contributor

Looks good, thank you!

@sshedi sshedi deleted the misc-fixes branch March 20, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants