src/server/config/objconf.c

changeset 23
a2c8fc23c90e
parent 17
d2a97bbeb57d
child 25
5dee29c7c530
equal deleted inserted replaced
22:adb0bda54e6b 23:a2c8fc23c90e
46 46
47 ObjectConfig *conf = malloc(sizeof(ObjectConfig)); 47 ObjectConfig *conf = malloc(sizeof(ObjectConfig));
48 conf->parser.parse = objconf_parse; 48 conf->parser.parse = objconf_parse;
49 conf->file = file; 49 conf->file = file;
50 conf->conditions = NULL; 50 conf->conditions = NULL;
51 conf->levels = NULL;
51 52
52 int r = cfg_parse_basic_file((ConfigParser*)conf, in); 53 int r = cfg_parse_basic_file((ConfigParser*)conf, in);
53 if(r != 0) { 54 if(r != 0) {
54 // TODO: free 55 // TODO: free
55 return NULL; 56 return NULL;

mercurial