mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 06:16:10 -04:00
Oops. event_config.flags was never initialized. Bugfix on 2.0.1-alpha. Found by Victor Goya.
svn:r1236
This commit is contained in:
parent
d70b080488
commit
faa756c7c1
@ -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
|
||||
|
3
event.c
3
event.c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user