From d63180f2dfd9630878c581c8c00c44315bd49e03 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 28 Aug 2015 02:29:31 +0000 Subject: [PATCH] Simply to appease gcc's warnings. --- sys/dev/ow/ow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ow/ow.c b/sys/dev/ow/ow.c index f854d250be8..ea788907e26 100644 --- a/sys/dev/ow/ow.c +++ b/sys/dev/ow/ow.c @@ -491,7 +491,7 @@ ow_child_location_str(device_t dev, device_t child, char *buf, size_t buflen) { - snprintf(buf, buflen, ""); + *buf = '\0'; return (0); }