summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2017-11-07 23:09:20 -0600
committerNicolas Williams <nico@cryptonector.com>2017-12-10 23:09:35 -0600
commitb5560d8420d330c4f90b3282c028bba476b01c1c (patch)
tree390a0fb098ee8469f00beaefcdf2534bf8bff87e
parent79ece359819cdd7d033d272af9758ae22204c2ef (diff)
Fix import as $data linking
-rw-r--r--src/linker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linker.c b/src/linker.c
index 6cf1c879..1b9d62c8 100644
--- a/src/linker.c
+++ b/src/linker.c
@@ -279,6 +279,8 @@ static int process_dependencies(jq_state *jq, jv jq_origin, jv lib_origin, block
if (nerrors == 0) {
// Bind the library to the program
bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, as_str);
+ if (is_data)
+ bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, NULL);
}
}
jv_free(as);