Oops. event_config.flags was never initialized. Bugfix on 2.0.1-alpha. Found by Victor Goya.

svn:r1236
This commit is contained in:
Nick Mathewson 2009-04-23 21:34:37 +00:00
parent d70b080488
commit faa756c7c1
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Changes in 2.0.2-alpha:
o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
o Use signal.h, not sys/signal.h. [Patch from mmadia]
o Try harder to build with certain older c99 compilers.
o Make sure that an event_config's flags field is always initialized to 0. [Bug report from Victor Goya]
Changes in 2.0.1-alpha:
o free minheap on event_base_free(); from Christopher Layne

View File

@ -479,13 +479,12 @@ event_get_supported_methods(void)
struct event_config *
event_config_new(void)
{
struct event_config *cfg = mm_malloc(sizeof(*cfg));
struct event_config *cfg = mm_calloc(1, sizeof(*cfg));
if (cfg == NULL)
return (NULL);
TAILQ_INIT(&cfg->entries);
cfg->require_features = 0;
return (cfg);
}