Add missing variable.
authorWerner Koch <wk@gnupg.org>
Wed, 25 Jan 2012 11:11:41 +0000 (12:11 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 25 Jan 2012 13:50:47 +0000 (14:50 +0100)
* agent/gpg-agent.c (handle_connections) [!W32]: Add missing variable.

agent/gpg-agent.c

index 2304b0f..3c66866 100644 (file)
@@ -1938,8 +1938,11 @@ handle_connections (gnupg_fd_t listen_fd, gnupg_fd_t listen_fd_ssh)
       ret = npth_pselect (nfd+1, &read_fdset, NULL, NULL, &timeout, npth_sigev_sigmask());
       saved_errno = errno;
 
-      while (npth_sigev_get_pending(&signo))
-       handle_signal (signo);
+      {
+        int signo;
+        while (npth_sigev_get_pending (&signo))
+          handle_signal (signo);
+      }
 #else
       events_set = 0;
       ret = npth_eselect (nfd+1, &read_fdset, NULL, NULL, &timeout, events, &events_set);