Skip to content

#2 edac-util.c:326: possible bad if test ? #4

@grondo

Description

@grondo

Moved from sf.net, user dcb:

Source code is
if (mci.mc_name[0] != '\0' || mci.mc_name[0] != '\n') {
Suggest swap || for &&.
This bug found by compiling the package with gcc flag -Wlogical-op

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions