1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

libsmbconf: more sanely print multi_sz values in registry backend

Michael
(This used to be commit 382c623948abd1c6a5cf8ab7ee2be784fcef76ee)
This commit is contained in:
Michael Adam 2008-04-08 22:23:57 +02:00
parent 40c60b0917
commit 7f0127a903

View File

@ -337,8 +337,8 @@ static char *smbconf_format_registry_value(TALLOC_CTX *mem_ctx,
case REG_MULTI_SZ: {
uint32 j;
for (j = 0; j < value->v.multi_sz.num_strings; j++) {
result = talloc_asprintf(mem_ctx, "%s \"%s\" ",
result,
result = talloc_asprintf(mem_ctx, "%s\"%s\" ",
result ? result : "" ,
value->v.multi_sz.strings[j]);
if (result == NULL) {
break;