Blame SOURCES/0218-RHBZ-1459370-add-feature-fix.patch

4ae388
---
4ae388
 libmultipath/structs.c |   10 ++++++++++
4ae388
 1 file changed, 10 insertions(+)
4ae388
4ae388
Index: multipath-tools-130222/libmultipath/structs.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/structs.c
4ae388
+++ multipath-tools-130222/libmultipath/structs.c
4ae388
@@ -511,6 +511,16 @@ add_feature (char **f, char *n)
4ae388
 	if (!n || *n == '0')
4ae388
 		return 0;
4ae388
 
4ae388
+	/* default feature is null */
4ae388
+	if (!*f)
4ae388
+	{
4ae388
+		l = asprintf(&t, "1 %s", n);
4ae388
+		if (l == -1)
4ae388
+			return 1;
4ae388
+		*f = t;
4ae388
+		return 0;
4ae388
+	}
4ae388
+
4ae388
 	/* Check if feature is already present */
4ae388
 	if (strstr(*f, n))
4ae388
 		return 0;