@@ -1365,7 +1365,7 @@ static int index_insert(
13651365 error = git_vector_insert_sorted (& index -> entries , entry , index_no_dups );
13661366
13671367 if (error == 0 ) {
1368- INSERT_IN_MAP (index , entry , error );
1368+ INSERT_IN_MAP (index , entry , & error );
13691369 }
13701370 }
13711371
@@ -1592,7 +1592,7 @@ int git_index__fill(git_index *index, const git_vector *source_entries)
15921592 if ((ret = git_vector_insert (& index -> entries , entry )) < 0 )
15931593 break ;
15941594
1595- INSERT_IN_MAP (index , entry , ret );
1595+ INSERT_IN_MAP (index , entry , & ret );
15961596 if (ret < 0 )
15971597 break ;
15981598 }
@@ -2499,7 +2499,7 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
24992499 goto done ;
25002500 }
25012501
2502- INSERT_IN_MAP (index , entry , error );
2502+ INSERT_IN_MAP (index , entry , & error );
25032503
25042504 if (error < 0 ) {
25052505 index_entry_free (entry );
@@ -2984,7 +2984,7 @@ int git_index_read_tree(git_index *index, const git_tree *tree)
29842984 kh_resize (idx , entries_map , entries .length );
29852985
29862986 git_vector_foreach (& entries , i , e ) {
2987- INSERT_IN_MAP_EX (index , entries_map , e , error );
2987+ INSERT_IN_MAP_EX (index , entries_map , e , & error );
29882988
29892989 if (error < 0 ) {
29902990 giterr_set (GITERR_INDEX , "failed to insert entry into map" );
@@ -3103,7 +3103,7 @@ static int git_index_read_iterator(
31033103
31043104 if (add_entry ) {
31053105 if ((error = git_vector_insert (& new_entries , add_entry )) == 0 )
3106- INSERT_IN_MAP_EX (index , new_entries_map , add_entry , error );
3106+ INSERT_IN_MAP_EX (index , new_entries_map , add_entry , & error );
31073107 }
31083108
31093109 if (remove_entry && error >= 0 )
0 commit comments