diff options
| author | Warner Losh <imp@FreeBSD.org> | 2018-01-28 23:58:22 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2018-01-28 23:58:22 +0000 |
| commit | 8cc3cfa86d0d5c6d4ca064ba319ba561d2faaba4 (patch) | |
| tree | 8464fca2152089384964ecbeb7e11f2af8ea52bb /sys/dev/ofw | |
| parent | 21776ff850a29edb1440f7309500813e6b3cf952 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_bus_subr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c index 957520bd9778..33fdc38200d5 100644 --- a/sys/dev/ofw/ofw_bus_subr.c +++ b/sys/dev/ofw/ofw_bus_subr.c @@ -90,6 +90,7 @@ ofw_bus_gen_child_pnpinfo_str(device_t cbdev, device_t child, char *buf, size_t buflen) { + *buf = '\0'; if (ofw_bus_get_name(child) != NULL) { strlcat(buf, "name=", buflen); strlcat(buf, ofw_bus_get_name(child), buflen); |
