summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-08-04 22:54:10 +0200
committerMichal Schmidt <mschmidt@redhat.com>2014-09-15 16:08:50 +0200
commit4dd6c5726d87a336888c0d871b9260c98f689016 (patch)
treed26f4c86be78b6687f4e7b2627487e441721afb9
parent923041cb0ab7c1795e74fa1ce4b38a6114727a3c (diff)
sd-bus: use proper ITERATOR_FIRST abstraction
Do not assume hashmap iterators are pointers. They may be structs in an alternative hashmap implementation.
-rw-r--r--src/libsystemd/sd-bus/bus-track.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c
index 0a3322a4ee..4b6a8bfee9 100644
--- a/src/libsystemd/sd-bus/bus-track.c
+++ b/src/libsystemd/sd-bus/bus-track.c
@@ -245,7 +245,7 @@ _public_ const char* sd_bus_track_first(sd_bus_track *track) {
return NULL;
track->modified = false;
- track->iterator = NULL;
+ track->iterator = ITERATOR_FIRST;
hashmap_iterate(track->names, &track->iterator, (const void**) &n);
return n;