Need to fix line reads

This commit is contained in:
Joseph Redmon
2014-12-28 09:42:35 -08:00
parent 4ab366a805
commit f26da0ad5c
6 changed files with 59 additions and 22 deletions

View File

@ -416,6 +416,7 @@ list *read_cfg(char *filename)
strip(line);
switch(line[0]){
case '[':
printf("%s\n", line);
current = malloc(sizeof(section));
list_insert(sections, current);
current->options = make_list();