diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-07-27 23:16:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-07-27 23:16:27 +0200 |
commit | e39ca690efb0ceba3fba3f9a27c898fe61b43801 (patch) | |
tree | 7ff952c421d735061de672114c139545b8afc4be | |
parent | ac5cf6cc8d0c86d94550a956e9c45de409af4160 (diff) |
add a few assert()s
-rw-r--r-- | libasyncns/asyncns.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libasyncns/asyncns.c b/libasyncns/asyncns.c index be2b2c1..3917bae 100644 --- a/libasyncns/asyncns.c +++ b/libasyncns/asyncns.c @@ -199,6 +199,8 @@ static int close_allv(const int except_fds[]) { DIR *d; + assert(except_fds); + if ((d = opendir("/proc/self/fd"))) { struct dirent *de; @@ -281,6 +283,7 @@ static int close_allv(const int except_fds[]) { static int reset_sigsv(const int except[]) { int sig; + assert(except); for (sig = 1; sig < _NSIG; sig++) { int reset = 1; @@ -322,6 +325,7 @@ static int reset_sigsv(const int except[]) { static int ignore_sigsv(const int ignore[]) { int i; + assert(ignore); for (i = 0; ignore[i] > 0; i++) { struct sigaction sa; |