Skip to content

Commit 4c7de79

Browse files
committed
Improved naming of a C-function
1 parent 0e11d9e commit 4c7de79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/sqlite3_stubs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ static inline value copy_not_null_string_array(const char** strs, int len)
285285
}
286286
}
287287

288-
static inline value safe_copy_string_array(const char** strs, int len)
288+
static inline value safe_copy_header_strings(const char** strs, int len)
289289
{
290290
value v_res = copy_not_null_string_array(strs, len);
291-
if (v_res == (value) NULL) raise_sqlite3_Error("Null element in row");
291+
if (v_res == (value) NULL) raise_sqlite3_Error("Null element in header");
292292
return v_res;
293293
}
294294

@@ -477,7 +477,7 @@ static inline int exec_callback(
477477
v_row = copy_string_option_array((const char **) row, num_columns);
478478

479479
Begin_roots1(v_row);
480-
v_header = safe_copy_string_array((const char **) header, num_columns);
480+
v_header = safe_copy_header_strings((const char **) header, num_columns);
481481
End_roots();
482482

483483
v_ret = caml_callback2_exn(*cbx->cbp, v_row, v_header);
@@ -591,7 +591,7 @@ static inline int exec_not_null_callback(
591591
}
592592

593593
Begin_roots1(v_row);
594-
v_header = safe_copy_string_array((const char **) header, num_columns);
594+
v_header = safe_copy_header_strings((const char **) header, num_columns);
595595
End_roots();
596596

597597
v_ret = caml_callback2_exn(*cbx->cbp, v_row, v_header);

0 commit comments

Comments
 (0)