summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-03-14 04:45:39 +0000
committerroot <root>2009-03-14 04:45:39 +0000
commit07a30d19ef7195fc361d41d9de3debc4562277c3 (patch)
tree7f0d3ef30e16d00afecacd506abda1180b614196
parent12e7cbf440b105100ba865eb7ed5f0c8c459d459 (diff)
*** empty log message ***
-rw-r--r--Changes4
-rw-r--r--ev.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Changes b/Changes
index e7d63ce..cacef1d 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
Revision history for libev, a high-performance and full-featured event loop.
+ - correctly zero the idx values for arrays, so destroying and
+ reinitialising the default loop actually works (patch by
+ Malek Hadj-Ali).
+
3.53 Sun Feb 15 02:38:20 CET 2009
- fix a bug in event pipe creation on win32 that would cause a
failed assertion on event loop creation (patch by Malek Hadj-Ali).
diff --git a/ev.c b/ev.c
index 7b8a92c..57b1f31 100644
--- a/ev.c
+++ b/ev.c
@@ -678,7 +678,7 @@ array_realloc (int elem, void *base, int *cur, int cnt)
#endif
#define array_free(stem, idx) \
- ev_free (stem ## s idx); stem ## cnt idx = stem ## max idx = 0;
+ ev_free (stem ## s idx); stem ## cnt idx = stem ## max idx = 0; stem ## s idx = 0
/*****************************************************************************/