s3: Get rid of a NULL terminator
authorVolker Lendecke <vl@samba.org>
Sun, 1 Nov 2009 10:33:59 +0000 (11:33 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 7 Nov 2009 08:14:16 +0000 (09:14 +0100)
source3/rpc_client/cli_pipe.c

index 824c32e8d835fca67f30be3cef9064f671eb43e8..7a05c9b5fb92c733242b4380e020141a91f28870 100644 (file)
@@ -51,7 +51,6 @@ static const struct ndr_interface_table *pipe_names[] =
        &ndr_table_ntsvcs,
        &ndr_table_epmapper,
        &ndr_table_drsuapi,
-       NULL
 };
 
 static const char *get_pipe_name_from_iface(
@@ -92,7 +91,7 @@ const char *get_pipe_name_from_syntax(TALLOC_CTX *mem_ctx,
        const char *result;
        int i;
 
-       for (i = 0; pipe_names[i]; i++) {
+       for (i = 0; i<ARRAY_SIZE(pipe_names); i++) {
                if (ndr_syntax_id_equal(&pipe_names[i]->syntax_id,
                                        interface)) {
                        result = get_pipe_name_from_iface(