From d4016dd4d0d90ab3f5f05d0858a48548f1e1a79f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 20 Jan 2012 10:59:26 +0000 Subject: 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 039e8b37..0ff8cd75 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; -- cgit