summaryrefslogtreecommitdiffstats
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 6e92a60238..287d2090ff 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1227,6 +1227,8 @@ char *get_mydnsdomname(TALLOC_CTX *ctx)
if (p) {
p++;
my_domname = talloc_strdup(ctx, p);
+ } else {
+ my_domname = talloc_strdup(ctx, "");
}
return my_domname;