From 5473b2f124021bbf0ba2854f3ef595d017004bcb Mon Sep 17 00:00:00 2001 From: fc_botelho Date: Fri, 2 Sep 2005 17:51:17 +0000 Subject: [PATCH] Fixed: gcc 2.95 problem and initialzes memory --- src/cmph_structs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmph_structs.c b/src/cmph_structs.c index 553db3d..30790bf 100644 --- a/src/cmph_structs.c +++ b/src/cmph_structs.c @@ -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; }