git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca46011
)
s3-rpc_parse: fix c++ buildwarning in prs_init().
author
Günther Deschner
<gd@samba.org>
Wed, 7 Jul 2010 12:56:14 +0000
(14:56 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 7 Jul 2010 12:56:14 +0000
(14:56 +0200)
Guenther
source3/rpc_parse/parse_prs.c
patch
|
blob
|
history
diff --git
a/source3/rpc_parse/parse_prs.c
b/source3/rpc_parse/parse_prs.c
index af1cc3d5b2054dd07698c13cc95b138976b30c5d..c460f1fbca5257c046a08146d2f6edebe12dc167 100644
(file)
--- a/
source3/rpc_parse/parse_prs.c
+++ b/
source3/rpc_parse/parse_prs.c
@@
-112,7
+112,7
@@
bool prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, bool io)
if (size != 0) {
ps->buffer_size = size;
- ps->data_p = talloc_zero_size(ps->mem_ctx, size);
+ ps->data_p =
(char *)
talloc_zero_size(ps->mem_ctx, size);
if(ps->data_p == NULL) {
DEBUG(0,("prs_init: talloc fail for %u bytes.\n", (unsigned int)size));
return False;