commit a02d5f81107cb783552f0f456fccf21a313ec9c9 from: Stefan Sperling date: Thu Feb 13 10:05:24 2020 UTC break out of loop on error, instead of returning, in gw_index() commit - d4159696c300048740aebad152f3697c458385a7 commit + a02d5f81107cb783552f0f456fccf21a313ec9c9 blob - 137f85debc593ae6b18b6b800eed393ee582f7d3 blob + a8bbb9d6f6ab87b8cde03db11f8b6466786710b2 --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -636,11 +636,13 @@ gw_index(struct gw_trans *gw_trans) kerr = khtml_attr(gw_trans->gw_html_req, KELEM_DIV, KATTR_ID, "index_wrapper", KATTR__MAX); if (kerr != KCGI_OK) - return gw_kcgi_error(kerr); + goto done; if (asprintf(&href_summary, "?path=%s&action=summary", - gw_dir->name) == -1) - return got_error_from_errno("asprintf"); + gw_dir->name) == -1) { + error = got_error_from_errno("asprintf"); + goto done; + } kerr = khtml_attr(gw_trans->gw_html_req, KELEM_DIV, KATTR_ID, "index_project", KATTR__MAX); if (kerr != KCGI_OK)