Skip to contentSkip to conversation

Return proper type from _raidsyncaction()

PATCH New [email protected] 1 participant 1 message Sep 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Return proper type from _raidsyncaction()

From: Heinz Mauelshagen <[email protected]>

---
 lib/report/properties.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/report/properties.c +2 -2
index e0092db..0218108 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2010-2014 Red Hat, Inc. All rights reserved.
  *
  * This file is part of LVM2.
  *
@@ -71,7 +71,7 @@ static char *_raidsyncaction(const struct logical_volume *lv)
 	char *action;
 
 	if (!lv_raid_sync_action(lv, &action))
-		return 0;
+		return NULL;
 
 	return action;
 }
Signature · 1 line
1.9.3