1. Jean-Charles Campagne
  2. postgresql-ocaml

Commits

Jonathan Derque  committed f300e5d

Added return statement to fix compiler warnings

  • Participants
  • Parent commits 455348c
  • Branches default

Comments (0)

Files changed (1)

File lib/postgresql_stubs.c

View file
  • Ignore whitespace
   if (error) {
     free(buf);
     caml_failwith("Postgresql.escape_string_conn: failed to escape string");
+    return Val_unit;
   } else {
     value v_res = caml_alloc_string(n_written);
     memcpy(String_val(v_res), buf, n_written);