From c7b2c08a6b30422cfa95da0348876f54b6f4cf6f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 24 Mar 2014 09:18:53 +0100 Subject: [PATCH] cleanup: use NULL for pointer reset --- daemons/dmeventd/libdevmapper-event.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/daemons/dmeventd/libdevmapper-event.c b/daemons/dmeventd/libdevmapper-event.c index db9200f91..1e723d76f 100644 --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -372,14 +372,13 @@ int daemon_talk(struct dm_event_fifos *fifos, if (!_daemon_write(fifos, msg)) { stack; dm_free(msg->data); - msg->data = 0; + msg->data = NULL; return -EIO; } do { - dm_free(msg->data); - msg->data = 0; + msg->data = NULL; if (!_daemon_read(fifos, msg)) { stack;