From 92908541638b41215d48e51d6fa4aa63b82d8c1a Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Thu, 27 Nov 2014 20:19:28 +0100 Subject: [PATCH] toollib: Fix uninitialised config value type in get_cachepolicy_params. --- tools/toollib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/toollib.c b/tools/toollib.c index 6d409a9cd..41e6f88a2 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -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); }