1
0
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:
Zbigniew Jędrzejewski-Szmek 2012-11-25 16:36:46 +01:00
parent 2cc86f094a
commit 4a1909bb66

View File

@ -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;
}