Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Uninitialized timespec fields in stat #19

Description

@FrankHB

This commit removed some redundant assignments on implementation-specific fields. However, it also left some public ones uninitialized.

Probably adding this would be better:

st->st_atim.tv_nsec = 0;
st->st_mtim.tv_nsec = 0;
st->st_ctim.tv_nsec = 0;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions