diff options
author | Michael Adam <obnox@samba.org> | 2007-07-07 21:41:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:51 -0500 |
commit | feff1fcfd8844859b339bc14c2fe4650b3784fe4 (patch) | |
tree | c491aca3926e6cbdd651d009d5314afd83126355 | |
parent | f7b8a3782a7c28147f4e54c35b02a39d6b2bd879 (diff) | |
download | samba-feff1fcfd8844859b339bc14c2fe4650b3784fe4.tar.gz samba-feff1fcfd8844859b339bc14c2fe4650b3784fe4.tar.bz2 samba-feff1fcfd8844859b339bc14c2fe4650b3784fe4.zip |
r23746: Fix missing assignments to target string of asprintf in import function.
Michael
(This used to be commit 6b1bf7c1f49f737ca3cbee96b184e3b21fdc4931)
-rw-r--r-- | source3/utils/net_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 6f23a00177..febc8dc9e1 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -527,7 +527,7 @@ static int import_process_service(TALLOC_CTX *ctx, } break; case P_OCTAL: - talloc_asprintf(ctx, "%s", octal_string(*(int *)ptr)); + valstr = talloc_asprintf(ctx, "%s", octal_string(*(int *)ptr)); break; case P_LIST: valstr = talloc_strdup(ctx, ""); @@ -553,7 +553,7 @@ static int import_process_service(TALLOC_CTX *ctx, break; case P_INTEGER: valtype = "dword"; - talloc_asprintf(ctx, "%d", *(int *)ptr); + valstr = talloc_asprintf(ctx, "%d", *(int *)ptr); break; case P_SEP: break; |