diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-20 10:59:26 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-20 10:59:26 +0000 |
commit | d4016dd4d0d90ab3f5f05d0858a48548f1e1a79f (patch) | |
tree | 35217db7ac753e93e6a7db93a930ce66a72f2e01 /daemons | |
parent | 9a471aea066fb7de59d6c0ef8b4cfe6723f18a2c (diff) | |
download | lvm2-d4016dd4d0d90ab3f5f05d0858a48548f1e1a79f.tar.gz lvm2-d4016dd4d0d90ab3f5f05d0858a48548f1e1a79f.tar.xz lvm2-d4016dd4d0d90ab3f5f05d0858a48548f1e1a79f.zip |
Thin forgotten initialisation of pointer to NULL
Since the code may go in error path, set to defined NULL.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/dmeventd/plugins/thin/dmeventd_thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |