summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-01 11:33:59 +0100
committerVolker Lendecke <vl@samba.org>2009-11-07 09:14:16 +0100
commit268df12ab6b60052d4f5e8ff723f2528ace0dbfb (patch)
tree5e00f6e39d5edb43da1253d87ee4373065cf5fa6 /source3
parenta32c425f91dc28460fa928ba6f5b9331aba03d23 (diff)
downloadsamba-268df12ab6b60052d4f5e8ff723f2528ace0dbfb.tar.gz
samba-268df12ab6b60052d4f5e8ff723f2528ace0dbfb.tar.bz2
samba-268df12ab6b60052d4f5e8ff723f2528ace0dbfb.zip
s3: Get rid of a NULL terminator
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 824c32e8d8..7a05c9b5fb 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -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(