dns_server: Fix a clang warning
authorVolker Lendecke <vl@samba.org>
Mon, 9 Nov 2015 09:01:59 +0000 (10:01 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Nov 2015 09:13:18 +0000 (10:13 +0100)
clang complains that '\0' is converted to a NULL pointer. This seems
to work fine, so make this pointer explicitly NULL. If instead we
need a "" here, we could of course do that too.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 10 10:13:18 CET 2015 on sn-devel-104

source4/dns_server/dns_utils.c

index 3092633346e7060745f8872eb2c0bc15d5185bfb..ce450b56c645ba5489f9ac8fa1dc715e32aad5e0 100644 (file)
@@ -193,7 +193,7 @@ WERROR dns_generate_options(struct dns_server *dns,
        if (o == NULL) {
                return WERR_NOMEM;
        }
-       o->name = '\0';
+       o->name = NULL;
        o->rr_type = DNS_QTYPE_OPT;
        /* This is ugly, but RFC2671 wants the payload size in this field */
        o->rr_class = (enum dns_qclass) dns->max_payload;