mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
CodeStyle
This commit is contained in:
parent
e0264e471c
commit
d9cef42721
5 changed files with 16 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue