Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = BT_COMPONENT_STATUS_END;
BT_PUT(pretty->input_iterator);
goto end;
- default:
+ case BT_NOTIFICATION_ITERATOR_STATUS_AGAIN:
+ ret = BT_COMPONENT_STATUS_AGAIN;
+ goto end;
+ case BT_NOTIFICATION_ITERATOR_STATUS_OK:
break;
+ default:
+ ret = BT_COMPONENT_STATUS_ERROR;
+ goto end;
}
notification = bt_notification_iterator_get_notification(it);
assert(notification);
ret = handle_notification(pretty, notification);
+
end:
bt_put(notification);
return ret;