-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks misaligned
plugins/metalink/utils.c
Outdated
BAIL_ON_TDNF_ERROR(elementInfo->dwError); | ||
} | ||
pr_err("%s:%d elementInfo is NULL\n", __func__, __LINE__); | ||
return; |
There was a problem hiding this comment.
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.
8028564
to
4434299
Compare
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]>
Looks good, thank you! |
No description provided.