svn commit: samba r14981 - in branches/SAMBA_4_0/source/lib/registry/tools: .

tridge at samba.org tridge at samba.org
Sat Apr 8 02:58:36 GMT 2006


Author: tridge
Date: 2006-04-08 02:58:36 +0000 (Sat, 08 Apr 2006)
New Revision: 14981

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14981

Log:

fixed a use of a wild ptr in regshell

Modified:
   branches/SAMBA_4_0/source/lib/registry/tools/regshell.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/registry/tools/regshell.c
===================================================================
--- branches/SAMBA_4_0/source/lib/registry/tools/regshell.c	2006-04-08 02:55:16 UTC (rev 14980)
+++ branches/SAMBA_4_0/source/lib/registry/tools/regshell.c	2006-04-08 02:58:36 UTC (rev 14981)
@@ -93,9 +93,9 @@
 	if (argc < 4) {
 		fprintf(stderr, "Usage: set value-name type value\n");
 	} else {
-		struct registry_value *val;
-		if (reg_string_to_val(mem_ctx, argv[2], argv[3], &val->data_type, &val->data)) {
-			WERROR error = reg_val_set(cur, argv[1], val->data_type, val->data);
+		struct registry_value val;
+		if (reg_string_to_val(mem_ctx, argv[2], argv[3], &val.data_type, &val.data)) {
+			WERROR error = reg_val_set(cur, argv[1], val.data_type, val.data);
 			if (!W_ERROR_IS_OK(error)) {
 				fprintf(stderr, "Error setting value: %s\n", win_errstr(error));
 				return NULL;



More information about the samba-cvs mailing list