At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/
------------------------------------------------------------
revno: 5327
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Michael Adam <[EMAIL PROTECTED]>
branch nick: SAMBA_3_0-registry.bzr
timestamp: Wed 2007-04-04 07:56:31 +0200
message:
use the appriopriate function to initialize empty string via talloc
(for subsequent talloc_asprintf_append calls), thus avoiding
compiler warnings
modified:
source/utils/net_conf.c net_conf.c-20070228210606-uywdn1acd043wgvt-1
=== modified file 'source/utils/net_conf.c'
--- a/source/utils/net_conf.c 2007-04-04 05:54:54 +0000
+++ b/source/utils/net_conf.c 2007-04-04 05:56:31 +0000
@@ -491,7 +491,7 @@
talloc_asprintf(ctx, "%s", octal_string(*(int *)ptr));
break;
case P_LIST:
- valstr = talloc_asprintf(ctx, "");
+ valstr = talloc_strdup(ctx, "");
if ((char ***)ptr && *(char ***)ptr) {
char **list = *(char ***)ptr;
for (; *list; list++) {