git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdcdcac
)
r23746: Fix missing assignments to target string of asprintf in import function.
author
Michael Adam
<obnox@samba.org>
Sat, 7 Jul 2007 21:41:59 +0000
(21:41 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:23:51 +0000
(12:23 -0500)
Michael
source/utils/net_conf.c
patch
|
blob
|
history
diff --git
a/source/utils/net_conf.c
b/source/utils/net_conf.c
index 6f23a001776860f718cd00f5c7c044bf7c71079d..febc8dc9e13cbb2777fc48465a68a9ed9b9fc420 100644
(file)
--- a/
source/utils/net_conf.c
+++ b/
source/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;