svn commit: samba r23746 - in branches: SAMBA_3_0/source/utils
SAMBA_3_0_26/source/utils
obnox at samba.org
obnox at samba.org
Sat Jul 7 21:42:00 GMT 2007
Author: obnox
Date: 2007-07-07 21:41:59 +0000 (Sat, 07 Jul 2007)
New Revision: 23746
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23746
Log:
Fix missing assignments to target string of asprintf in import function.
Michael
Modified:
branches/SAMBA_3_0/source/utils/net_conf.c
branches/SAMBA_3_0_26/source/utils/net_conf.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_conf.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_conf.c 2007-07-07 21:33:48 UTC (rev 23745)
+++ branches/SAMBA_3_0/source/utils/net_conf.c 2007-07-07 21:41:59 UTC (rev 23746)
@@ -527,7 +527,7 @@
}
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 @@
break;
case P_INTEGER:
valtype = "dword";
- talloc_asprintf(ctx, "%d", *(int *)ptr);
+ valstr = talloc_asprintf(ctx, "%d", *(int *)ptr);
break;
case P_SEP:
break;
Modified: branches/SAMBA_3_0_26/source/utils/net_conf.c
===================================================================
--- branches/SAMBA_3_0_26/source/utils/net_conf.c 2007-07-07 21:33:48 UTC (rev 23745)
+++ branches/SAMBA_3_0_26/source/utils/net_conf.c 2007-07-07 21:41:59 UTC (rev 23746)
@@ -527,7 +527,7 @@
}
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 @@
break;
case P_INTEGER:
valtype = "dword";
- talloc_asprintf(ctx, "%d", *(int *)ptr);
+ valstr = talloc_asprintf(ctx, "%d", *(int *)ptr);
break;
case P_SEP:
break;
More information about the samba-cvs
mailing list