Skip to content

Prefer to always declare and initialize variables to their closest first use #4

@ASmoliak

Description

@ASmoliak

image

In order to improve code density, it is widely accepted to initialize variables in the very first use, you can see in line 16 that you can just declare and initialize char *sockPath = argv[1]
and you can declare the struct in the line just before line 19.

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