1
Fork 0

Fixed: gcc 2.95 problem and initialzes memory

This commit is contained in:
fc_botelho 2005-09-02 17:51:17 +00:00
parent 41cd24604c
commit eb3afb8e8e
1 changed files with 2 additions and 1 deletions

View File

@ -8,12 +8,13 @@
cmph_config_t *__config_new(cmph_io_adapter_t *key_source)
{
cmph_config_t *mph = (cmph_config_t *)malloc(sizeof(cmph_config_t));
memset(mph, 0, sizeof(cmph_config_t));
DEBUGP("Creating mph with algorithm %s\n", cmph_names[algo]);
if (mph == NULL) return NULL;
mph->key_source = key_source;
mph->verbosity = 0;
mph->data = NULL;
float c = 0;
mph->c = 0;
return mph;
}