Skip to content

Commit

Permalink
squash! bus/containers: Build a global data structure for container i…
Browse files Browse the repository at this point in the history
…nstances

---

Use _DBUS_STRING_INIT_INVALID to simplify cleanup
  • Loading branch information
smcv committed Nov 21, 2017
1 parent 1aa0929 commit 0fc58ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bus/containers.c
Expand Up @@ -141,7 +141,7 @@ bus_container_instance_new (BusContext *context,
DBusError *error)
{
BusContainerInstance *self = NULL;
DBusString path;
DBusString path = _DBUS_STRING_INIT_INVALID;

_dbus_assert (context != NULL);
_dbus_assert (containers != NULL);
Expand All @@ -150,7 +150,7 @@ bus_container_instance_new (BusContext *context,
if (!_dbus_string_init (&path))
{
BUS_SET_OOM (error);
return NULL;
goto fail;
}

self = dbus_new0 (BusContainerInstance, 1);
Expand Down

2 comments on commit 0fc58ba

@pwithnall
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@smcv
Copy link
Owner Author

@smcv smcv commented on 0fc58ba Dec 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squashed into parent commit

Please sign in to comment.