Permalink
Browse files

Fix: systemd: Prevent use-of-NULL when determining if an agent exists

  • Loading branch information...
1 parent 7d54502 commit 0597697bf408690a5b52e1dfb128888ef974bfe7 @beekhof beekhof committed Feb 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/services/systemd.c
View
@@ -141,7 +141,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);

0 comments on commit 0597697

Please sign in to comment.