From 70955d40a1598512aeafdc8ac386f9b806af3db6 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 16 Jan 2008 22:52:46 +0000 Subject: [PATCH] fix a _get_vgs return --- lib/metadata/metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 4334e51c1..3b70616ab 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -1899,7 +1899,7 @@ static int _get_pvs(struct cmd_context *cmd, struct list **pvslist) if (pvslist) { if (!(results = dm_pool_alloc(cmd->mem, sizeof(*results)))) { log_error("PV list allocation failed"); - return NULL; + return 0; } list_init(results);