summaryrefslogtreecommitdiff
path: root/tests/putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/putenv.c')
-rw-r--r--tests/putenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/putenv.c b/tests/putenv.c
index d3084c9e..c310ebda 100644
--- a/tests/putenv.c
+++ b/tests/putenv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1997-1998, 2000, 2003-2024 Free Software
+/* Copyright (C) 1991, 1994, 1997-1998, 2000, 2003-2025 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
@@ -106,7 +106,7 @@ putenv (char *string)
name_x[name_end - string + 2] = 0;
putenv_result = _putenv (name_x);
for (ep = environ; *ep; ep++)
- if (strcmp (*ep, name_x) == 0)
+ if (streq (*ep, name_x))
{
*ep = string;
break;