summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-21 08:12:45 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-21 15:49:18 +0100
commita3ebe5eb620e49f0d24082876cafc7579261e64f (patch)
tree169a97f495adff89a071cecaee016f97ba606a21
parenthwdb: update database (diff)
downloadsystemd-a3ebe5eb620e49f0d24082876cafc7579261e64f.tar.xz
systemd-a3ebe5eb620e49f0d24082876cafc7579261e64f.zip
udevadm: add two more assertions
Suggested by Coverity. Closes CID#1397033 and CID#1395708.
-rw-r--r--src/udev/udevadm-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm-test.c b/src/udev/udevadm-test.c
index f08aee47c1..54c525e02c 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);