/* get lines of text, or CRLF_CRLF */
- while( (line = get_line(self)) && line[0] != '\0' )
- {
+ while ((line = get_line(self)) && line[0] != '\0') {
/* add header to table */
char *value = NULL;
}
if (value) {
- if(buf_value.c && key) {
+ if (buf_value.c && key) {
/* new entry, add the old one to the list */
smart_string_0(&buf_value);
entry.key = key;
}
*value = '\0';
- do { value++; } while(isspace(*value));
+ do { value++; } while (isspace(*value));
key = estrdup(line);
smart_string_appends(&buf_value, value);
}
}
- if(buf_value.c && key) {
+ if (buf_value.c && key) {
/* add the last one to the list */
smart_string_0(&buf_value);
entry.key = key;