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]);