summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hash.c b/hash.c
index 75c07797d3..5fe1dbc6ae 100644
--- a/hash.c
+++ b/hash.c
@@ -1598,11 +1598,7 @@ env_has_value(dmy, value)
while (*env) {
char *s = strchr(*env, '=');
if (s++) {
-#ifdef ENV_IGNORECASE
- if (strncasecmp(s, RSTRING(value)->ptr, strlen(s)) == 0) {
-#else
if (strncmp(s, RSTRING(value)->ptr, strlen(s)) == 0) {
-#endif
FREE_ENVIRON(environ);
return Qtrue;
}
@@ -1625,11 +1621,7 @@ env_index(dmy, value)
while (*env) {
char *s = strchr(*env, '=');
if (s++) {
-#ifdef ENV_IGNORECASE
- if (strncasecmp(s, RSTRING(value)->ptr, strlen(s)) == 0) {
-#else
if (strncmp(s, RSTRING(value)->ptr, strlen(s)) == 0) {
-#endif
str = env_str_new(*env, s-*env-1);
FREE_ENVIRON(environ);
return str;