Skip to content

Incorrect Initialization Method #587

Description

@zkh8227

In the following code, the variable name is initialized to its own indeterminate value with char *name = name. Even though name will be reassigned later, what is the intention behind such an initialization?

https://github.com/landley/toybox/blob/master/toys/other/vmstat.c#L52

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