summaryrefslogtreecommitdiffstats
path: root/src/bvrcommands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bvrcommands.c')
-rw-r--r--src/bvrcommands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bvrcommands.c b/src/bvrcommands.c
index f08c0ab..5f58457 100644
--- a/src/bvrcommands.c
+++ b/src/bvrcommands.c
@@ -97,6 +97,9 @@ int bvr_handle_include(FILE * input, FILE * output) {
if(stream == NULL) {
strcat(notgoodatnamingvariables, BVR_COMMAND_FILE_EXT);
stream = fopen(notgoodatnamingvariables+1, "r"); // ob1 fuckery
+ if(stream != NULL) {
+ break;
+ }
}
*singlepath = '\0';
}