From 1762920808f646501ac823576f5de70c92a25a55 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sat, 26 Nov 2016 17:43:36 +0100
Subject: [PATCH] rcfile: actually don't try to open things that cannot be
 syntax files

---
 src/rcfile.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rcfile.c b/src/rcfile.c
index 170a7181..7793e17e 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -539,6 +539,7 @@ static void parse_one_include(char *file)
 	rcfile_error(S_ISDIR(rcinfo.st_mode) ?
 			_("\"%s\" is a directory") :
 			_("\"%s\" is a device file"), file);
+	return;
     }
 
     /* Open the included syntax file. */
-- 
GitLab