From 76b1e2d9b12ad96a4f073f1f49f7c703e9cf20fb Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 20 Jan 2012 10:59:26 +0000 Subject: [PATCH] Thin forgotten initialisation of pointer to NULL Since the code may go in error path, set to defined NULL. --- daemons/dmeventd/plugins/thin/dmeventd_thin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/dmeventd/plugins/thin/dmeventd_thin.c b/daemons/dmeventd/plugins/thin/dmeventd_thin.c index 039e8b375..0ff8cd757 100644 --- a/daemons/dmeventd/plugins/thin/dmeventd_thin.c +++ b/daemons/dmeventd/plugins/thin/dmeventd_thin.c @@ -142,7 +142,7 @@ void process_event(struct dm_task *dmt, const char *device = dm_task_get_name(dmt); int percent; struct dso_state *state = *private; - struct dm_status_thin_pool *tps; + struct dm_status_thin_pool *tps = NULL; void *next = NULL; uint64_t start, length; char *target_type = NULL;