summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-01-19 23:50:56 +0100
committersijanec <anton@sijanec.eu>2021-01-19 23:50:56 +0100
commitc539e7ea173ff7b77113bc4a25e1278f97e19cda (patch)
treedada53d0faa20ed74725e9a6ca7ff1a9e5b66f6f /src
parent?e now explodes empty strings too (diff)
downloadbverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar.gz
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar.bz2
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar.lz
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar.xz
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.tar.zst
bverbose-c539e7ea173ff7b77113bc4a25e1278f97e19cda.zip
Diffstat (limited to 'src')
-rw-r--r--src/bvr.h2
-rw-r--r--src/bvrvar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bvr.h b/src/bvr.h
index 185b78f..acd34c7 100644
--- a/src/bvr.h
+++ b/src/bvr.h
@@ -23,7 +23,7 @@
#define PROCESSING_COMMAND 346 // not needed
#define THE_VOID "/dev/null"
-#define BVR_INITIAL_VARIABLES_COUNT 128
+#define BVR_INITIAL_VARIABLES_COUNT 1024
#define BVR_UNDEFINED "BVR_UNDEFINED"
#define BVR_ARRAY_INDEX_CHAR '['
#define BVR_ARRAY_AFTER_INDEX "]"
diff --git a/src/bvrvar.c b/src/bvrvar.c
index 6b80a60..584611f 100644
--- a/src/bvrvar.c
+++ b/src/bvrvar.c
@@ -32,7 +32,7 @@ int bvr_var_set(char * item, char * value) {
int freevar = -69420;
for(int i = 0; i < bvr_variables_count; i++) {
// printf("loop here4\n");
- if (strcmp(bvr_variables[i].v, BVR_UNDEFINED) == 0) {
+ if (freevar != -69420 && strcmp(bvr_variables[i].v, BVR_UNDEFINED) == 0) {
freevar = i;
}
if(strcmp(bvr_variables[i].k, item) == 0 || i+1 == bvr_variables_count) {