summaryrefslogtreecommitdiffstats
path: root/linker/linker_environ.c
diff options
context:
space:
mode:
Diffstat (limited to 'linker/linker_environ.c')
-rw-r--r--linker/linker_environ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_environ.c b/linker/linker_environ.c
index 6c5b571..b71dd80 100644
--- a/linker/linker_environ.c
+++ b/linker/linker_environ.c
@@ -110,7 +110,7 @@ env_match(char* envstr, const char* name)
while (envstr[cnt] == name[cnt] && name[cnt] != '\0')
cnt++;
- if (name[cnt] != '\0' && envstr[cnt] == '=')
+ if (name[cnt] == '\0' && envstr[cnt] == '=')
return envstr + cnt + 1;
return NULL;