Skip to contentSkip to conversation

LVM2/daemons/dmeventd/plugins/thin dmeventd_thin.c

PATCH [email protected] 1 participant 1 message Jan 20, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-20 10:59:26

Modified files:
daemons/dmeventd/plugins/thin: dmeventd_thin.c

Log message:
Thin forgotten initialisation of pointer to NULL

Since the code may go in error path, set to defined NULL.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/plugins/thin/dmeventd_thin.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4

daemons/dmeventd/plugins/thin/dmeventd_thin.c +1 -1
@@ -142,7 +142,7 @@
 	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;