public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ff859
)
Fixed bug in checking of last char of environment variable
author
ceriel
<none@none>
Wed, 24 Apr 1991 12:18:03 +0000
(12:18 +0000)
committer
ceriel
<none@none>
Wed, 24 Apr 1991 12:18:03 +0000
(12:18 +0000)
lang/cem/libcc.ansi/stdlib/getenv.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/stdlib/getenv.c
b/lang/cem/libcc.ansi/stdlib/getenv.c
index
ae9f0f6
..
15c493d
100644
(file)
--- a/
lang/cem/libcc.ansi/stdlib/getenv.c
+++ b/
lang/cem/libcc.ansi/stdlib/getenv.c
@@
-18,8
+18,8
@@
getenv(const char *name)
return (char *)NULL;
while ((p = *v++) != NULL) {
q = name;
- while (*q && (*q
++
== *p++))
-
/* EMPTY */
;
+ while (*q && (*q == *p++))
+
q++
;
if (*q || (*p != '='))
continue;
return (char *)p + 1;