mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 18:18:05 +02:00
Add some precondition checks to an api entry point
ply_event_loop_stop_watching_fd wasn't ensuring that the caller passes non-NULL arguments.
This commit is contained in:
parent
53688a686f
commit
eb050bd564
1 changed files with 3 additions and 0 deletions
|
|
@ -715,6 +715,9 @@ ply_event_loop_stop_watching_fd (ply_event_loop_t *loop,
|
|||
ply_event_destination_t *destination;
|
||||
ply_event_source_t *source;
|
||||
|
||||
assert (loop != NULL);
|
||||
assert (watch != NULL);
|
||||
|
||||
destination = ply_event_loop_get_destination_from_fd_watch (loop, watch);
|
||||
assert (destination != NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue