1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: add missing error path check

New code misses error path check.
This commit is contained in:
Zdenek Kabelac 2014-11-22 22:39:56 +01:00
parent ccdea661fa
commit a6a7a3a074

View File

@ -1149,7 +1149,8 @@ struct dm_config_tree *get_cachepolicy_params(struct cmd_context *cmd)
goto_out; goto_out;
} }
result = dm_config_flatten(current); if (!(result = dm_config_flatten(current)))
goto_out;
if (!(cn = dm_config_create_node(result, "policy_settings"))) if (!(cn = dm_config_create_node(result, "policy_settings")))
goto_out; goto_out;