Skip to contentSkip to conversation

master - toollib: Fix uninitialised config value type in get_cachepolicy_params.

PATCH Petr Rockai 1 participant 1 message Nov 27, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=92908541638b41215d48e51d6fa4aa63b82d8c1a
Commit:        92908541638b41215d48e51d6fa4aa63b82d8c1a
Parent:        4bfdb01f789a50267cbb50288a3bd5bc60edd685
Author:        Petr Rockai <[email protected]>
AuthorDate:    Thu Nov 27 20:19:28 2014 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Nov 27 20:19:28 2014 +0100

toollib: Fix uninitialised config value type in get_cachepolicy_params.

---
 tools/toollib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/toollib.c +1 -0
index 6d409a9..41e6f88 100644
@@ -1166,6 +1166,7 @@ struct dm_config_tree *get_cachepolicy_params(struct cmd_context *cmd)
 		if (!(cn->v = dm_config_create_value(result)))
 			goto_out;
 
+		cn->v->type = DM_CFG_STRING;
 		cn->v->v.str = arg_str_value(cmd, cachepolicy_ARG, NULL);
 	}