Skip to content

Conversation

@coiby
Copy link
Contributor

@coiby coiby commented Jun 30, 2021

Fix the following error found by covscan,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
python-dmidecode-3.12.2/src/dmidecodemodule.c:828:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL opt where non-null expected
/usr/include/python3.9/Python.h:30: included_from: Included from here.
python-dmidecode-3.12.2/src/dmidecodemodule.c:42: included_from: Included from here.
/usr/include/string.h:61:14: note: argument 1 of memset must be non-null

…ument]: use of possibly-NULL opt where non-null expected"

Fix the following error found by covscan,

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
    python-dmidecode-3.12.2/src/dmidecodemodule.c:828:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL opt where non-null expected
    /usr/include/python3.9/Python.h:30: included_from: Included from here.
    python-dmidecode-3.12.2/src/dmidecodemodule.c:42: included_from: Included from here.
    /usr/include/string.h:61:14: note: argument 1 of memset must be non-null
Copy link
Collaborator

@lian-bo lian-bo left a comment

Choose a reason for hiding this comment

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

This change looks good. Thanks.

@lian-bo lian-bo merged commit f0a089a into nima:master Jun 30, 2021
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.

2 participants