summaryrefslogtreecommitdiff
path: root/libc/inet/resolv.c
diff options
context:
space:
mode:
authorMarius Melzer <marius.melzer@kernkonzept.com>2023-12-20 13:36:18 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-12-22 10:48:33 +0100
commitde8c46aee404020fb78a6a283b5be6fbee4f3931 (patch)
treea56abcb6ec7528dc7f4b8b5a015d1997dcde6f77 /libc/inet/resolv.c
parent3564b811b8539e26e22a237acd9097c847851d78 (diff)
Fix -Wnon-literal-null-conversion clang warning
Clang warns that the NULL character literal '\0' is used as a pointer value. Change this to 0 in order to avoid the warning.
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r--libc/inet/resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index cda3b399a..2f627ca08 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1778,7 +1778,7 @@ int __read_etc_hosts_r(
found:
result_buf->h_name = *(result_buf->h_aliases++);
result_buf->h_addr_list = (char**)(buf + HALISTOFF);
- *(result_buf->h_addr_list + 1) = '\0';
+ *(result_buf->h_addr_list + 1) = 0;
h_addr0 = (struct in_addr*)(buf + INADDROFF);
result_buf->h_addr = (char*)h_addr0;
if (0) /* nothing */;