diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-21 16:12:45 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-21 15:49:18 +0100 |
commit | a3ebe5eb620e49f0d24082876cafc7579261e64f (patch) | |
tree | 169a97f495adff89a071cecaee016f97ba606a21 | |
parent | hwdb: update database (diff) | |
download | systemd-a3ebe5eb620e49f0d24082876cafc7579261e64f.tar.gz systemd-a3ebe5eb620e49f0d24082876cafc7579261e64f.tar.bz2 systemd-a3ebe5eb620e49f0d24082876cafc7579261e64f.zip |
udevadm: add two more assertions
Suggested by Coverity.
Closes CID#1397033 and CID#1395708.
-rw-r--r-- | src/udev/udevadm-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm-test.c b/src/udev/udevadm-test.c index f08aee47c..54c525e02 100644 --- a/src/udev/udevadm-test.c +++ b/src/udev/udevadm-test.c @@ -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); |