Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Redundant Code in fy-tool.c #96

Open
Orange23333 opened this issue Jul 26, 2023 · 1 comment
Open

The Redundant Code in fy-tool.c #96

Orange23333 opened this issue Jul 26, 2023 · 1 comment

Comments

@Orange23333
Copy link
Contributor

https://github.com/pantoniou/libfyaml/blob/ce5149953e043541fb7ecca21691423aaad90513/src/tool/fy-tool.c#L1606C4-L1606C4

progname = argv[0];
progname = strrchr(argv[0], '/');

progname will always be modified by the second line. Is the first line of code redundant?

@Orange23333
Copy link
Contributor Author

PR #97 .

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

No branches or pull requests

1 participant