-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
curl_fopen optimization #11419
curl_fopen optimization #11419
Conversation
WTF? A PR should describe the motivation behind a change. And so what's the optimization here? |
lib/fopen.c
Outdated
goto fail; | ||
} | ||
if (fstat(fileno(*fh), &sb) == -1 || !S_ISREG(sb.st_mode)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make checksrc
will tell you that we don't use spaces after if
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies for the oversight, fixed in next commit.
Last commit notes:
|
That's not how |
Sorry about that, another oversight in rush. I believe this should be good to go now. |
Thanks! |
Closes curl#11419
No description provided.