Blame SOURCES/bz1070916-pcmk-systemd_prevent_use_of_null_when_determining_if_an_agent_exists.patch

7100e8
commit 4d52d269e3022a693155fd1b443990f5956057d7
7100e8
Author: Andrew Beekhof <andrew@beekhof.net>
7100e8
Date:   Fri Feb 28 14:11:15 2014 +1100
7100e8
7100e8
    Fix: systemd: Prevent use-of-NULL when determining if an agent exists
7100e8
    
7100e8
    (cherry picked from commit 0597697bf408690a5b52e1dfb128888ef974bfe7)
7100e8
7100e8
diff --git a/lib/services/systemd.c b/lib/services/systemd.c
7100e8
index 374a03e..a28ae14 100644
7100e8
--- a/lib/services/systemd.c
7100e8
+++ b/lib/services/systemd.c
7100e8
@@ -142,7 +142,7 @@ systemd_unit_by_name(const gchar * arg_name, gchar ** out_unit)
7100e8
 
7100e8
     name = systemd_service_name(arg_name);
7100e8
 
7100e8
-    while(*out_unit == NULL) {
7100e8
+    while(TRUE) {
7100e8
         msg = systemd_new_method(BUS_NAME".Manager", method);
7100e8
         CRM_ASSERT(msg != NULL);
7100e8