summaryrefslogtreecommitdiffstats
path: root/src/bvrcommands.c
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 18:22:34 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 18:22:34 +0200
commit2b8ef629c516c5920bc110d8050256e8baaf5073 (patch)
treed237499edd955511cc4f28facb5434bd55a8d4a0 /src/bvrcommands.c
parentsecurity mc (diff)
downloadbverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.gz
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.bz2
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.lz
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.xz
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.tar.zst
bverbose-2b8ef629c516c5920bc110d8050256e8baaf5073.zip
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';
}