journald: assert target instead of page

page is a local, yet unitialized, variable.
This commit is contained in:
Lukas Nykryn
2012-10-02 14:56:39 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 5b585b5380
commit fadd79d2d8
+1 -1
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);