aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}