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

Fix covscan warnings #1530

Merged
merged 3 commits into from Jun 4, 2020
Merged

Fix covscan warnings #1530

merged 3 commits into from Jun 4, 2020

Conversation

evgenyz
Copy link
Contributor

@evgenyz evgenyz commented May 19, 2020

No description provided.

yaml-path.c:342:61: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
yaml-path.c:251:27: warning: unused variable 'sec' [-Wunused-variable]
yamlfilecontent_probe.c:163: leaked_storage: Variable "yaml_path" going out of scope leaks the storage it points to.
…t explicitly

fileextendedattribute_probe.c:116: invalid_type: Argument "0" to format specifier "%zu" was expected to have type "size_t"("unsigned long") but has type "int".
fileextendedattribute_probe.c:116: pass_freed_arg: Passing freed pointer "st_path_with_prefix" as an argument to "__oscap_dlprintf".
@evgenyz evgenyz added this to the 1.3.4 milestone May 19, 2020
@lgtm-com
Copy link

lgtm-com bot commented May 19, 2020

This pull request fixes 1 alert when merging e7a8732 into b1210a4 - view on LGTM.com

fixed alerts:

  • 1 for Empty branch of conditional

@jan-cerny jan-cerny self-assigned this Jun 4, 2020
@jan-cerny
Copy link
Member

@openscap-ci test this please

@jan-cerny jan-cerny merged commit d63af07 into OpenSCAP:maint-1.3 Jun 4, 2020
@evgenyz evgenyz deleted the fix-covscan branch July 9, 2021 07:32
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.

None yet

2 participants