mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
code: language cleanup in comments
Based on the standards and guidelines we use for our documentation. - expand contractions (they're => they are etc) - host name = > hostname - file name => filename - user name = username - man page => manpage - run-time => runtime - set-up => setup - back-end => backend - a HTTP => an HTTP - Two spaces after a period => one space after period Closes #14073
This commit is contained in:
parent
9b683577e1
commit
c074ba64a8
213 changed files with 1719 additions and 1715 deletions
|
|
@ -37,7 +37,7 @@ static char *GetEnv(const char *variable)
|
|||
return NULL;
|
||||
#elif defined(_WIN32)
|
||||
/* This uses Windows API instead of C runtime getenv() to get the environment
|
||||
variable since some changes aren't always visible to the latter. #4774 */
|
||||
variable since some changes are not always visible to the latter. #4774 */
|
||||
char *buf = NULL;
|
||||
char *tmp;
|
||||
DWORD bufsize;
|
||||
|
|
@ -54,8 +54,8 @@ static char *GetEnv(const char *variable)
|
|||
buf = tmp;
|
||||
bufsize = rc;
|
||||
|
||||
/* It's possible for rc to be 0 if the variable was found but empty.
|
||||
Since getenv doesn't make that distinction we ignore it as well. */
|
||||
/* it is possible for rc to be 0 if the variable was found but empty.
|
||||
Since getenv does not make that distinction we ignore it as well. */
|
||||
rc = GetEnvironmentVariableA(variable, buf, bufsize);
|
||||
if(!rc || rc == bufsize || rc > max) {
|
||||
free(buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue