Added return statement to fix compiler warnings

4 months ago

author
Jonathan Derque <jonathan.derque@lexifi.com>
date
Thu Jan 05 11:35:04 2012 +0100
changeset 104
f300e5d1e19f
parent 103
455348cf39a2
child 105
28abb0a136c8

Added return statement to fix compiler warnings

lib/postgresql_stubs.c file | annotate | diff | revisions
     1.1 --- a/lib/postgresql_stubs.c
     1.2 +++ b/lib/postgresql_stubs.c
     1.3 @@ -779,6 +779,7 @@
     1.4    if (error) {
     1.5      free(buf);
     1.6      caml_failwith("Postgresql.escape_string_conn: failed to escape string");
     1.7 +    return Val_unit;
     1.8    } else {
     1.9      value v_res = caml_alloc_string(n_written);
    1.10      memcpy(String_val(v_res), buf, n_written);

mercurial