mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
ostree-init: Also trim trailing newline from arguments
Otherwise the parsed argument is corrupted.
This commit is contained in:
parent
bfd47eb93a
commit
fb98d0bf24
@ -79,6 +79,9 @@ parse_arg (const char *cmdline, const char *arg)
|
||||
const char *start = p + arglen;
|
||||
const char *end = strchr (start, ' ');
|
||||
|
||||
if (!end)
|
||||
end = strchr (start, '\n');
|
||||
|
||||
if (is_eq)
|
||||
{
|
||||
if (end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user