diff --git a/src/rcfile.c b/src/rcfile.c
index 170a718166904698253ba52dd518c976b0c83aba..7793e17eadc6d3884740f913703cd51ed526cca2 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. */