summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-12 01:46:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-12 01:46:15 +0200
commit348be5f1e44c0b17ff87a8964a36e83b291a6518 (patch)
treeba17e6f8898397238f9da4eaacbc2e4a01646619 /source3/param
parent218f482fbfe96b2cddec8c05f6b8f174481d2e27 (diff)
downloadsamba-348be5f1e44c0b17ff87a8964a36e83b291a6518.tar.gz
samba-348be5f1e44c0b17ff87a8964a36e83b291a6518.tar.bz2
samba-348be5f1e44c0b17ff87a8964a36e83b291a6518.zip
Share data_blob implementation.
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 1191c3d3aa..58efa57bab 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6529,7 +6529,7 @@ static void copy_service(struct service *pserviceDest, struct service *pserviceS
break;
case P_LIST:
TALLOC_FREE(*((char ***)dest_ptr));
- str_list_copy(NULL, (char ***)dest_ptr,
+ *((char ***)dest_ptr) = str_list_copy(NULL,
*(const char ***)src_ptr);
break;
default:
@@ -7927,9 +7927,8 @@ static void lp_save_defaults(void)
continue;
switch (parm_table[i].type) {
case P_LIST:
- str_list_copy(
- NULL, &(parm_table[i].def.lvalue),
- *(const char ***)parm_table[i].ptr);
+ parm_table[i].def.lvalue = str_list_copy(
+ NULL, *(const char ***)parm_table[i].ptr);
break;
case P_STRING:
case P_USTRING: