Skip to content

Conversation

@alexlarsson
Copy link
Collaborator

This is a pure cleanup patch and should not affect anything. I was gonna use it for some other work which required yet another fd argument, but that fell through.

int the_fd;

the_fd = strtol (arg, &endptr, 10);
if (arg[0] == 0 || endptr[0] != 0 || the_fd < 0)

This comment was marked as resolved.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, didn’t notice it was assigned to an int variable.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it can still create strange truncations so I think this + long the_fd is necessary after all.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants