CodeStyle

This commit is contained in:
Consolatis 2022-01-09 05:48:27 +01:00 committed by Johan Malm
parent e0264e471c
commit d9cef42721
5 changed files with 16 additions and 8 deletions

View file

@ -261,8 +261,9 @@ parse_xml(const char *filename, struct server *server)
buf_init(&b);
while (getline(&line, &len, stream) != -1) {
char *p = strrchr(line, '\n');
if (p)
if (p) {
*p = '\0';
}
buf_add(&b, line);
}
free(line);