summaryrefslogtreecommitdiffstats
path: root/src/opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt.c')
-rw-r--r--src/opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opt.c b/src/opt.c
index 18d2054..e6f8486 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -50,8 +50,10 @@ int rccSetOption(rcc_context ctx, rcc_option option, rcc_option_value value) {
ctx->default_options[option] = 0;
if (ctx->options[option] != value) {
+ rccMutexLock(ctx->mutex);
ctx->configure = 1;
ctx->options[option]=value;
+ rccMutexUnLock(ctx->mutex);
}
return 0;