Skip to content

Commit

Permalink
Fix crash (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Feb 24, 2021
1 parent 6bf33b8 commit 828b6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ static void receive(const msg_t *const msg, UNUSED const void* userdata) {
switch (MSG_TYPE()) {
case FD_UPD: {
sd_bus *b = (sd_bus *)msg->fd_msg->userptr;
sd_bus_message *m = NULL;
int r;
do {
sd_bus_message *m = NULL;
r = sd_bus_process(b, &m);
if (m) {
inhibit_parse_msg(m);
sd_bus_message_unrefp(&m);
sd_bus_message_unref(m);
}
} while (r > 0);
if (r < 0) {
Expand Down

0 comments on commit 828b6a8

Please sign in to comment.