1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-26 10:03:40 +03:00

udevadm: add two more assertions

Suggested by Coverity.

Closes CID#1397033 and CID#1395708.
This commit is contained in:
Yu Watanabe 2018-12-21 16:12:45 +09:00 committed by Lennart Poettering
parent b72200a8a1
commit a3ebe5eb62

View File

@ -127,8 +127,8 @@ int test_main(int argc, char *argv[], void *userdata) {
event = udev_event_new(dev, 0, NULL);
sigfillset(&mask);
sigprocmask(SIG_SETMASK, &mask, &sigmask_orig);
assert_se(sigfillset(&mask) >= 0);
assert_se(sigprocmask(SIG_SETMASK, &mask, &sigmask_orig) >= 0);
udev_event_execute_rules(event, 60 * USEC_PER_SEC, NULL, rules);