mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2025-12-20 04:30:10 +01:00
key-file: ignore empty lines before the first group
Fixes: plymouth/plymouth#307
This commit is contained in:
parent
9f3bb1c0b2
commit
dfdf8ccac1
1 changed files with 4 additions and 1 deletions
|
|
@ -237,7 +237,10 @@ ply_key_file_load_groups (ply_key_file_t *key_file)
|
|||
|
||||
ply_key_file_group_t *group;
|
||||
|
||||
first_byte = fgetc (key_file->fp);
|
||||
do {
|
||||
first_byte = fgetc (key_file->fp);
|
||||
} while (isspace (first_byte));
|
||||
|
||||
if (first_byte == '#') {
|
||||
char *line_to_toss;
|
||||
size_t number_of_bytes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue