emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in src/atimer.c


From: Ari Roponen
Subject: Bug in src/atimer.c
Date: Sun, 27 Nov 2005 17:11:12 +0200 (EET)

Hi,

I think that src/atimer.c has a bug in stop_other_atimers().
This should fix it. I also changed 0 to NULL to make it similar
to a loop in cancel_atimer().

-
Ari Roponen


--- src/atimer.c.orig   2005-11-27 16:57:35.000000000 +0200
+++ src/atimer.c        2005-11-27 16:58:10.000000000 +0200
@@ -231,7 +231,7 @@ stop_other_atimers (t)
       struct atimer *p, *prev;

       /* See if T is active.  */
-      for (p = atimers, prev = 0; p && p != t; p = p->next)
+      for (p = atimers, prev = NULL; p && p != t; prev = p, p = p->next)
        ;

       if (p == t)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]