[PATCH 3/4] upstart-bridge: do not generate empty messages

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue May 6 03:58:53 PDT 2014


---
 src/upstart-bridge/ply-upstart-monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/upstart-bridge/ply-upstart-monitor.c b/src/upstart-bridge/ply-upstart-monitor.c
index a2c4d6d..5784d6e 100644
--- a/src/upstart-bridge/ply-upstart-monitor.c
+++ b/src/upstart-bridge/ply-upstart-monitor.c
@@ -273,7 +273,7 @@ on_get_all_job_properties_finished (DBusPendingCall           *call,
               DBUS_TYPE_STRING)
             goto next_item;
           dbus_message_iter_get_basic (&variant_iter, &description);
-          if (description != NULL)
+          if (description != NULL && description[0])
             {
               ply_trace ("description = '%s'", description);
               job->properties.description = strdup (description);
-- 
2.0.0.rc0



More information about the plymouth mailing list