]> granicus.if.org Git - strace/commitdiff
fix warning will POLL_HACK
authorJohn Hughes <john@Calva.COM>
Tue, 21 May 2002 11:24:18 +0000 (11:24 +0000)
committerJohn Hughes <john@Calva.COM>
Tue, 21 May 2002 11:24:18 +0000 (11:24 +0000)
ChangeLog
strace.c

index 0edbec51025e09667bea59e63f6196a064ed2875..3ff34663019fde128eb66a92d8193b704476ec26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-21  John Hughes <john@calva.com>
+
+       * strace.c: Fix warning if POLL_HACK is used.
+
 2002-05-17  John Hughes <john@calva.com>
 
        * svr4/ioctlent.sh: Some defines on UW come with too many spaces.
index f88525db7d94d083be6b150d54368bcd6bf56a18..9bd708af410b18f9cf5560d4b94a9e69569f1fb3 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1412,7 +1412,7 @@ static int
 trace()
 {
 #ifdef POLL_HACK
-       struct tcb *in_syscall;
+       struct tcb *in_syscall = NULL;
 #endif
        struct tcb *tcp;
        int pfd;