Rev 5327: use the appriopriate function to initialize empty string via talloc in http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

Michael Adam ma at sernet.de
Wed Apr 4 05:56:34 GMT 2007


At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

------------------------------------------------------------
revno: 5327
revision-id: ma at sernet.de-20070404055631-e54d50996254c92f
parent: ma at sernet.de-20070404055454-48fee1bcab048c9f
committer: Michael Adam <ma at sernet.de>
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++) {



More information about the samba-cvs mailing list