summaryrefslogtreecommitdiffstats
path: root/src/bvrvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bvrvar.c')
-rw-r--r--src/bvrvar.c2
1 files changed, 1 insertions, 1 deletions
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) {