[PATCH:xscope 05/24] Move debug statement before panic() call, so it can actually run

Alan Coopersmith alan.coopersmith at oracle.com
Fri Aug 31 22:17:47 PDT 2012


Fixes compiler warning:
"fd.c", line 481: warning: statement not reached

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 fd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fd.c b/fd.c
index 00a68a2..8b85460 100644
--- a/fd.c
+++ b/fd.c
@@ -477,8 +477,8 @@ MainLoop(void)
 
             if (FD_ISSET(fd, &rfds)) {
                 if (FDD[fd].InputHandler == NULL) {
-                    panic("FD selected with no handler");
                     debug(1, (stderr, "FD %d has NULL handler\n", fd));
+                    panic("FD selected with no handler");
                 }
                 else
                     (FDD[fd].InputHandler) (fd);
-- 
1.7.9.2



More information about the xorg-devel mailing list