summaryrefslogtreecommitdiffhomepage
path: root/lib/resolv.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-01-18 14:55:14 +0100
committerJo-Philipp Wich <jo@mein.io>2022-01-18 14:56:14 +0100
commit61d0a34fb7501a1f8aa43cfa1063c8a7ca1fb1d2 (patch)
tree66c3cc119db5828b9013e6fd61a1e81186362a65 /lib/resolv.c
parent4015c2c1769989c20ea7234296eea02a16d1703d (diff)
lib: replace usages of vasprintf() with xvasprintf()
This avoid triggering -Werror=unused-result compilation failures with certain toolchains. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/resolv.c')
-rw-r--r--lib/resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.c b/lib/resolv.c
index fe704fa..044b7b7 100644
--- a/lib/resolv.c
+++ b/lib/resolv.c
@@ -54,7 +54,7 @@ set_error(int errcode, const char *fmt, ...) {
if (fmt) {
va_start(ap, fmt);
- vasprintf(&last_error.msg, fmt, ap);
+ xvasprintf(&last_error.msg, fmt, ap);
va_end(ap);
}
}