return error if can't find section
This commit is contained in:
parent
ed57c43dc8
commit
0d6afdf52f
@ -167,6 +167,7 @@ file_split_name_value(char* text, char* name, char* value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
/* return error */
|
||||||
int APP_CC
|
int APP_CC
|
||||||
file_read_section(int fd, char* section, struct list* names,
|
file_read_section(int fd, char* section, struct list* names,
|
||||||
struct list* values)
|
struct list* values)
|
||||||
@ -226,5 +227,5 @@ file_read_section(int fd, char* section, struct list* names,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free_stream(s);
|
free_stream(s);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user