summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-04-30 12:52:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:38 -0500
commit4c991c6edd2a46d7452096ba80c00e7ab4c95924 (patch)
treec994901b6db43e17e893b63913fadc4d50b308f4 /source4/lib/registry/reg_backend_rpc
parentf517d6b7ae5ae0f5865a99f4ba0477738b634466 (diff)
downloadsamba-4c991c6edd2a46d7452096ba80c00e7ab4c95924.tar.gz
samba-4c991c6edd2a46d7452096ba80c00e7ab4c95924.tar.bz2
samba-4c991c6edd2a46d7452096ba80c00e7ab4c95924.zip
r425: add some comments to ugly code parts
we should take care of 'char *' and 'const char *' and DO NOT mix them! Jelmer: please fix this metze (This used to be commit cd609eb2fe9303825d5562047d57fd553b2601bd)
Diffstat (limited to 'source4/lib/registry/reg_backend_rpc')
-rw-r--r--source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
index a24df893fb..de2c2261b9 100644
--- a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
+++ b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
@@ -234,6 +234,7 @@ static WERROR rpc_get_value_by_index(REG_KEY *parent, int n, REG_VAL **value)
if(vn.max_len > 0) {
vn.len = 0;
vn.max_len = mykeydata->max_valnamelen*2;
+ /* FIXME: we should not point a 'char *' to a const buffer!!! --metze*/
vn.buf = "";
}
r.in.name = r.out.name = &vn;