From a7a671ed9848bed9469b3166ac769183f1b791d4 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Fri, 3 Nov 2017 16:40:20 -0500
Subject: [PATCH] Low: pengine: avoid not-really-possible use-of-NULL
makes static analysis happy
---
pengine/container.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pengine/container.c b/pengine/container.c
index 9d49b7c..f5d916c 100644
--- a/pengine/container.c
+++ b/pengine/container.c
@@ -906,7 +906,10 @@ container_create_probe(resource_t * rsc, node_t * node, action_t * complete,
}
}
}
- if(tuple->remote && tuple->remote->cmds->create_probe(tuple->remote, node, complete, force, data_set)) {
+ if (tuple->docker && tuple->remote
+ && tuple->remote->cmds->create_probe(tuple->remote, node, complete,
+ force, data_set)) {
+
/* Do not probe the remote resource until we know where docker is running
* Required for REMOTE_CONTAINER_HACK to correctly probe remote resources
*/
--
1.8.3.1