[hackers][sbase][PATCH] Activate the "else if" branch

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Tue, 15 Dec 2015 19:54:28 +0100

We checked the same condition in the "if" branch so it was never true
in the "else if" one. Removing this condition makes the "else if"
branch viable.
---
 ed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 3f878eb..12411ee 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1318,7 +1318,7 @@ sighup(int dummy)
 		line2 = lastln;
 		if (!setjmp(savesp)) {
 			dowrite("ed.hup", 1);
-		} else if (home && !setjmp(savesp)) {
+		} else if (home) {
 			n = snprintf(fname,
 			             sizeof(fname), "%s/%s", home, "ed.hup");
 			if (n < sizeof(fname) && n > 0)
-- 
2.6.3
Received on Tue Dec 15 2015 - 19:54:28 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 15 2015 - 20:00:21 CET