aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-02 11:45:16 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-02 11:45:16 -0400
commit92b403e9fd62ad8aca55fa7d13b6880bca3e3933 (patch)
treea4651d94b87a5054c39e85fbd0dce7b3aae93345 /src
parentmeta: add more gitignores (diff)
native: fix gc allocation error in jurl :dup
Diffstat (limited to 'src')
-rw-r--r--src/jurl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jurl.c b/src/jurl.c
index 063f52a..1fad9a3 100644
--- a/src/jurl.c
+++ b/src/jurl.c
@@ -60,7 +60,7 @@ static const JanetAbstractType jurl_type = {
JANET_CFUN(jurl_dup) {
janet_fixarity(argc, 1);
jurl_handle *jurl = janet_getjurl(argv, 0);
- jurl_handle *newj = (jurl_handle*)janet_abstract(&jurl_type, sizeof(jurl));
+ jurl_handle *newj = (jurl_handle*)janet_abstract(&jurl_type, sizeof(jurl_handle));
newj->handle = curl_easy_duphandle(jurl->handle);
return janet_wrap_abstract(newj);
}