diff options
Diffstat (limited to 'dbus/dbus-misc.c')
| -rw-r--r-- | dbus/dbus-misc.c | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/dbus/dbus-misc.c b/dbus/dbus-misc.c index 22b7333e..758e1a02 100644 --- a/dbus/dbus-misc.c +++ b/dbus/dbus-misc.c @@ -76,12 +76,15 @@ dbus_get_local_machine_id (void)    char *s;    s = NULL; -  _dbus_string_init (&uuid); + +  if (!_dbus_string_init (&uuid)) +    return NULL; +    if (!_dbus_get_local_machine_uuid_encoded (&uuid) ||        !_dbus_string_steal_data (&uuid, &s))      {        _dbus_string_free (&uuid); -      return FALSE; +      return NULL;      }    else      { | 
