git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32c425
)
s3: Get rid of a NULL terminator
author
Volker Lendecke
<vl@samba.org>
Sun, 1 Nov 2009 10:33:59 +0000
(11:33 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 7 Nov 2009 08:14:16 +0000
(09:14 +0100)
source3/rpc_client/cli_pipe.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_pipe.c
b/source3/rpc_client/cli_pipe.c
index 824c32e8d835fca67f30be3cef9064f671eb43e8..7a05c9b5fb92c733242b4380e020141a91f28870 100644
(file)
--- 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(