mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +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, ':');
|
colon2 = strchr(colon + 1, ':');
|
||||||
if (colon2) {
|
if (colon2) {
|
||||||
char *t;
|
char _cleanup_free_ *t;
|
||||||
|
|
||||||
t = strndup(colon + 1, colon2 - colon - 1);
|
t = strndup(colon + 1, colon2 - colon - 1);
|
||||||
if (!t)
|
if (!t)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
r = safe_atoi64(t, &m->n_skip);
|
r = safe_atoi64(t, &m->n_skip);
|
||||||
free(t);
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user