Only declare saved_errno when it's going to be used (on Linux).

This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-06-25 12:07:12 +02:00 committed by Lennart Poettering
parent 9a2ac32dcd
commit 6f44792806

View file

@ -2238,10 +2238,9 @@ int pa_close_all(int except_fd, ...) {
int pa_close_allv(const int except_fds[]) {
struct rlimit rl;
int maxfd, fd;
int saved_errno;
#ifdef __linux__
int saved_errno;
DIR *d;
if ((d = opendir("/proc/self/fd"))) {