libdap: Fix a '\0' vs NULL mixup
authorVolker Lendecke <vl@samba.org>
Mon, 12 Oct 2015 20:10:51 +0000 (22:10 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 14 Oct 2015 00:19:14 +0000 (02:19 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/ldap/ldap_message.c

index 0c664b70101540d0ecba3fe969988471ebc10836..bf836271de9012e431e2ec761bba839517737a83 100644 (file)
@@ -762,7 +762,7 @@ static struct ldb_val **ldap_decode_substring(TALLOC_CTX *mem_ctx, struct ldb_va
        }
        chunks[chunk_num]->length = strlen(value);
 
-       chunks[chunk_num + 1] = '\0';
+       chunks[chunk_num + 1] = NULL;
 
        return chunks;
 }