summaryrefslogtreecommitdiffstats
path: root/lib/libuutil/uu_dprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libuutil/uu_dprintf.c')
-rw-r--r--lib/libuutil/uu_dprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libuutil/uu_dprintf.c b/lib/libuutil/uu_dprintf.c
index 5d5fb84a8..d51fa81e8 100644
--- a/lib/libuutil/uu_dprintf.c
+++ b/lib/libuutil/uu_dprintf.c
@@ -68,7 +68,8 @@ uu_dprintf_create(const char *name, uu_dprintf_severity_t severity,
{
uu_dprintf_t *D;
- if (uu_check_name(name, UU_NAME_DOMAIN) == -1) {
+ if (name != NULL &&
+ uu_check_name(name, UU_NAME_DOMAIN) == -1) {
uu_set_error(UU_ERROR_INVALID_ARGUMENT);
return (NULL);
}