journald: assert target instead of page

page is a local, yet unitialized, variable.
This commit is contained in:
Lukas Nykryn 2012-10-01 09:53:33 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 5b585b5380
commit fadd79d2d8
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ static int request_handler_redirect(
int ret;
assert(connection);
assert(page);
assert(target);
if (asprintf(&page, "<html><body>Please continue to the <a href=\"%s\">journal browser</a>.</body></html>", target) < 0)
return respond_oom(connection);