Commit Diff


commit - d126c1b711dfd6c4c2a08450f75a44365a9ce21e
commit + f4df82f9ff383429f028c1f2a3d33029674d60e3
blob - bec7caac8b2d5d2df52184e76dd943c0b8a71b89
blob + 32bae4b6d2d3e160d5d80579d7ac3739a6b2e97f
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -698,11 +698,8 @@ gw_summary(struct gw_trans *gw_trans)
 	     *heads_html;
 	enum kcgi_err kerr;
 
-	if (pledge("stdio rpath proc exec sendfd unveil",
-	    NULL) == -1) {
-		error = got_error_from_errno("pledge");
-		return error;
-	}
+	if (pledge("stdio rpath proc exec sendfd unveil", NULL) == -1)
+		return got_error_from_errno("pledge");
 
 	/* unveil is applied with gw_briefs below */