chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: fix rewind logic
[elogind.git]
/
src
/
libsystemd-bus
/
bus-message.c
diff --git
a/src/libsystemd-bus/bus-message.c
b/src/libsystemd-bus/bus-message.c
index a86cd9a19677a23b7c97df077395574b656cd6ab..8d449c547827581950825a93c07dd6fa14e9c9bc 100644
(file)
--- a/
src/libsystemd-bus/bus-message.c
+++ b/
src/libsystemd-bus/bus-message.c
@@
-4152,7
+4152,7
@@
_public_ int sd_bus_message_rewind(sd_bus_message *m, int complete) {
}
c->offset_index = 0;
}
c->offset_index = 0;
- c->item_size =
c->n_offsets > 0 ? c->offsets[0] : c->end
;
+ c->item_size =
(c->n_offsets > 0 ? c->offsets[0] : c->end) - c->begin
;
return !isempty(c->signature);
}
return !isempty(c->signature);
}