summaryrefslogtreecommitdiff
path: root/src/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transaction.c')
-rw-r--r--src/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transaction.c b/src/transaction.c
index ffe374a86..5b345e1a9 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -120,7 +120,7 @@ int git_transaction_lock_ref(git_transaction *tx, const char *refname)
if ((error = git_refdb_lock(&node->payload, tx->db, refname)) < 0)
return error;
- git_strmap_insert(tx->locks, node->name, node, error);
+ git_strmap_insert(tx->locks, node->name, node, &error);
if (error < 0)
goto cleanup;