aboutsummaryrefslogtreecommitdiff
path: root/string/argz-replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/argz-replace.c')
-rw-r--r--string/argz-replace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/string/argz-replace.c b/string/argz-replace.c
index fdd9a8e..c29d547 100644
--- a/string/argz-replace.c
+++ b/string/argz-replace.c
@@ -1,5 +1,5 @@
/* String replacement in an argz vector
- Copyright (C) 1997-2024 Free Software Foundation, Inc.
+ Copyright (C) 1997-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -38,7 +38,7 @@ str_append (char **to, size_t *to_len, const char *buf, const size_t buf_len)
else
{
free (*to);
- *to = 0;
+ *to = NULL;
}
}
@@ -53,10 +53,10 @@ __argz_replace (char **argz, size_t *argz_len, const char *str, const char *with
if (str && *str)
{
- char *arg = 0;
+ char *arg = NULL;
char *src = *argz;
size_t src_len = *argz_len;
- char *dst = 0;
+ char *dst = NULL;
size_t dst_len = 0;
int delayed_copy = 1; /* True while we've avoided copying anything. */
size_t str_len = strlen (str), with_len = strlen (with);
@@ -84,7 +84,7 @@ __argz_replace (char **argz, size_t *argz_len, const char *str, const char *with
else
{
str_append (&to, &to_len, from, strlen (from));
- from = 0;
+ from = NULL;
}
}
}