mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -32,7 +32,7 @@ int PutEnvImpl(char *s, bool overwrite) {
|
|||
if (!p) goto fail;
|
||||
namelen = p + 1 - s;
|
||||
for (i = 0; environ[i]; ++i) {
|
||||
if (strncmp(environ[i], s, namelen) == 0) {
|
||||
if (!strncmp(environ[i], s, namelen)) {
|
||||
if (!overwrite) {
|
||||
free(s);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue