From 343dd8c3e469b710713be4a83d6f0c06bc858144 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 15 Jul 2004 05:10:15 +0000
Subject: [PATCH] Fix segfault in installer when viewing non-existant nodes.

---
 src/doors/timeport/install.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/doors/timeport/install.c b/src/doors/timeport/install.c
index 42a27824fd..0fc321e9de 100644
--- a/src/doors/timeport/install.c
+++ b/src/doors/timeport/install.c
@@ -1147,6 +1147,17 @@ Chinky:
 	clear();
 
 	file=fopen(Az1,"r");
+	if(file==NULL) {
+		COLOR(4,0);
+		PRINT("  View/Edit configuration of which ");
+		COLOR(12,0);
+		PRINT("existing");
+		COLOR(4,0);
+		PRINT(" Node?\r\n");
+		PRINT("  (Node is not yet existing!)");
+		sleep(2);
+		return;
+	}
 	readline(a1,sizeof(a1),file); // 'Path and name of drop file
 	readline(b1,sizeof(b1),file);
 	readline(c1,sizeof(c1),file);
-- 
GitLab