free_paths is an enum, use the enum value.
Signed-off-by: Martin Wilck <[email protected]>
---
libmultipath/structs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/structs.c b/libmultipath/structs.c
index aaa7e50..059d454 100644
--- a/libmultipath/structs.c
+++ b/libmultipath/structs.c
@@ -310,7 +310,7 @@ free_multipath (struct multipath * mpp, enum free_path_mode
free_paths)
mpp->alias = NULL;
}
- if (!free_paths && mpp->pg) {
+ if (free_paths == KEEP_PATHS && mpp->pg) {
struct pathgroup *pgp;
struct path *pp;
int i, j;
--
2.52.0