From 789ed99ffdeae638e9191ca99272e536f36f6934 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 29 Mar 2005 20:07:22 +0000 Subject: Added a lot of error detection stuff to the camera, player, encoder and decoder objects. --- src/miav_config.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/miav_config.cc') diff --git a/src/miav_config.cc b/src/miav_config.cc index 05e0d06..1c2d0c6 100644 --- a/src/miav_config.cc +++ b/src/miav_config.cc @@ -75,20 +75,16 @@ _cfg *MiavConfig::addConfig(_cfg *parent, char* conf) _cfg *cfg; - printf("[%s]\n", conf); - cfg = (_cfg*) malloc(sizeof(_cfg)); if(!parent) configs = cfg; int namelen = strchr(conf, '=') - conf; char* name = (char*)calloc(namelen + 1, 1); strncpy(name, conf, namelen); - printf("name [%s]#%d - ", name, namelen); int vallen = conf + strlen(conf) - (strchr(conf, '=') + 1); char* val = (char*)calloc(vallen + 1, 1); strncpy(val, conf + strlen(conf) - vallen, vallen); - printf("val [%s]#%d\n", val, vallen); cfg->name = new string((const char*)name); free(name); -- cgit v1.2.3