mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
journal-gatewayd: minor cleanup
This commit is contained in:
parent
2cc86f094a
commit
4a1909bb66
@ -328,14 +328,13 @@ static int request_parse_range(
|
||||
|
||||
colon2 = strchr(colon + 1, ':');
|
||||
if (colon2) {
|
||||
char *t;
|
||||
char _cleanup_free_ *t;
|
||||
|
||||
t = strndup(colon + 1, colon2 - colon - 1);
|
||||
if (!t)
|
||||
return -ENOMEM;
|
||||
|
||||
r = safe_atoi64(t, &m->n_skip);
|
||||
free(t);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user