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