diff options
-rw-r--r-- | components/util/opts.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs index 5816ec313aa..d2599fb128d 100644 --- a/components/util/opts.rs +++ b/components/util/opts.rs @@ -425,6 +425,7 @@ static mut OPTIONS: *mut Opts = 0 as *mut Opts; pub fn set_opts(opts: Opts) { unsafe { + assert!(OPTIONS.is_null()); let box_opts = box opts; OPTIONS = mem::transmute(box_opts); } |