From b580def0507913d01bd70cea6e8fad5bb6ed0dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 27 Jan 2025 01:44:01 -0500 Subject: [PATCH] Fix spurious call to JS_THIS_OBJECT() This appears to be why valgrind on FreeBSD was failing. You can't actually call this in a constructor because creating this is the whole point of calling it. --- src/sbbs3/js_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/js_file.c b/src/sbbs3/js_file.c index 08117ecf38..b983810e4d 100644 --- a/src/sbbs3/js_file.c +++ b/src/sbbs3/js_file.c @@ -3105,7 +3105,7 @@ JSClass js_file_class = { static JSBool js_file_constructor(JSContext *cx, uintN argc, jsval *arglist) { - JSObject * obj = JS_THIS_OBJECT(cx, arglist); + JSObject * obj; jsval * argv = JS_ARGV(cx, arglist); JSString* str; private_t* p; -- GitLab