summaryrefslogtreecommitdiffstats
path: root/src/udev/udevadm-test.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-12 18:52:11 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:37:13 +0200
commitbabdf0d3153838187d0760fa676a7ce4e5badd5e (patch)
tree3e61cc69325ad3294040e5561e8eea132490bd0d /src/udev/udevadm-test.c
parentefivars: add missing OOM check (diff)
downloadsystemd-babdf0d3153838187d0760fa676a7ce4e5badd5e.tar.xz
systemd-babdf0d3153838187d0760fa676a7ce4e5badd5e.zip
udevadm: assert_se() around sigprocmask()
CID #1395708
Diffstat (limited to '')
-rw-r--r--src/udev/udevadm-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-test.c b/src/udev/udevadm-test.c
index 89d51c7775..d2868d114c 100644
--- a/src/udev/udevadm-test.c
+++ b/src/udev/udevadm-test.c
@@ -105,7 +105,7 @@ int test_main(int argc, char *argv[], void *userdata) {
"some values may be different, or not available at a simulation run.\n"
"\n");
- sigprocmask(SIG_SETMASK, NULL, &sigmask_orig);
+ assert_se(sigprocmask(SIG_SETMASK, NULL, &sigmask_orig) >= 0);
udev_builtin_init();