diff options
Diffstat (limited to 'src/opt.c')
-rw-r--r-- | src/opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |