commit - 470cd826969d3cd3ae7ef7fca26b74c1cade591e
commit + 5ddf00796233678e3c4acf3bd859eedbf1665fa3
blob - 5a09e3414b04a8268d9de8abb0a6c1c425b962e5
blob + e17fd098aea0723c8f155c4c1e17ced8d052e96c
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
error = gw_apply_unveil(gw_trans->gw_dir->path, NULL);
if (error)
- return error;
+ goto done;
error = gw_get_header(gw_trans, header, 1);
if (error)
- return error;
+ goto done;
blame_html = gw_get_file_blame(gw_trans);
if (blame_html == NULL) {
blame_html = strdup("");
- if (blame_html == NULL)
- return got_error_from_errno("strdup");
+ if (blame_html == NULL) {
+ error = got_error_from_errno("strdup");
+ goto done;
+ }
}
if ((asprintf(&blame_html_disp, blame_header,
if (pledge("stdio rpath proc exec sendfd unveil",
NULL) == -1) {
error = got_error_from_errno("pledge");
- return error;
+ goto done;
}
error = gw_apply_unveil(gw_trans->gw_dir->path, NULL);
if (error)
- return error;
+ goto done;
error = gw_get_header(gw_trans, header,
gw_trans->gw_conf->got_max_commits_display);
if (pledge("stdio rpath proc exec sendfd unveil",
NULL) == -1) {
error = got_error_from_errno("pledge");
- return error;
+ goto done;
}
error = gw_apply_unveil(gw_trans->gw_dir->path, NULL);
if (error)
- return error;
+ goto done;
if (gw_trans->action == GW_SUMMARY)
error = gw_get_header(gw_trans, header, D_MAXSLCOMMDISP);
error = gw_apply_unveil(gw_trans->gw_dir->path, NULL);
if (error)
- return error;
+ goto done;
error = gw_get_header(gw_trans, header, 1);
if (error)
error = gw_apply_unveil(gw_trans->gw_dir->path, NULL);
if (error)
- return error;
+ goto done;
error = gw_get_header(gw_trans, header, 1);
if (error)