Commit Diff


commit - 565d9dcbb36e20a955965cfe017e6d1b77229c52
commit + 9133a7e62336b72876c524528a6319d94df3086d
blob - dfd6ac7a3c3d3115a9ae7f7d672fef74d5098187
blob + 01741fc7852c7838fdc88a89f0c19fb72c95b83e
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -645,10 +645,8 @@ gw_index(struct gw_trans *gw_trans)
 			return gw_kcgi_error(kerr);
 
 		if (asprintf(&href_summary, "?path=%s&action=summary",
-		    gw_dir->name) == -1) {
-			error = got_error_from_errno("asprintf");
-			return error;
-		}
+		    gw_dir->name) == -1)
+			return got_error_from_errno("asprintf");
 		kerr = khtml_attr(gw_trans->gw_html_req, KELEM_DIV, KATTR_ID,
 		    "index_project", KATTR__MAX);
 		if (kerr != KCGI_OK)