Skip to content

Using a variable which was set to 0. #7

@mfurquimdev

Description

@mfurquimdev

I was just skimming the code at src/barnyard2.c. Didn't run to see if it is really an issue.

Even though the variable argc is assigned to barnyard2_argc in line 258, and set to 0 in line 261, the argc variable is still used in line 268 to make a comparison (instead of using barnyard2_argc).

This also happens with the argv variable, which is used in line 957 (along with lines between 256 and 285).

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