From 2d73116bc001d4dd478f027f681845e21c22ad1d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 31 Dec 2023 03:09:32 +0000 Subject: [PATCH] Don't free an undefined JSValue. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4717 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/httpd.js.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd.js.c b/src/httpd.js.c index 85792a63..2c44c2d2 100644 --- a/src/httpd.js.c +++ b/src/httpd.js.c @@ -39,7 +39,7 @@ static JSValue _httpd_response_end(JSContext* context, JSValueConst this_val, in tf_http_request_t* request = JS_GetOpaque(this_val, _httpd_request_class_id); size_t length = 0; const void* data = NULL; - JSValue buffer; + JSValue buffer = JS_UNDEFINED; if (JS_IsString(argv[0])) { data = JS_ToCStringLen(context, &length, argv[0]);