diff options
| author | 2023-04-02 11:45:16 -0400 | |
|---|---|---|
| committer | 2023-04-02 11:45:16 -0400 | |
| commit | 92b403e9fd62ad8aca55fa7d13b6880bca3e3933 (patch) | |
| tree | a4651d94b87a5054c39e85fbd0dce7b3aae93345 | |
| parent | meta: add more gitignores (diff) | |
native: fix gc allocation error in jurl :dup
| -rw-r--r-- | src/jurl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
