Blame SOURCES/brltty-4.5-ocaml-4.04-fix.patch

78da24
diff --git a/Bindings/OCaml/brlapi_stubs.c b/Bindings/OCaml/brlapi_stubs.c
78da24
index 1e66f9e..aabdc14 100644
78da24
--- a/Bindings/OCaml/brlapi_stubs.c
78da24
+++ b/Bindings/OCaml/brlapi_stubs.c
78da24
@@ -145,12 +145,14 @@ CAMLprim value brlapiml_errorCode_of_error(value camlError)
78da24
 static void raise_brlapi_error(void)
78da24
 {
78da24
   static value *exception = NULL;
78da24
+  CAMLparam0();
78da24
   CAMLlocal1(res);
78da24
   if (exception==NULL) exception = caml_named_value("Brlapi_error");
78da24
   res = caml_alloc(2,0);
78da24
   Store_field(res, 0, *exception);
78da24
   Store_field(res, 1, constrCamlError(&brlapi_error));
78da24
   caml_raise(res);
78da24
+  CAMLreturn0;
78da24
 }
78da24
 
78da24
 /* Function : raise_brlapi_exception */
78da24
@@ -159,6 +161,7 @@ static void BRLAPI_STDCALL raise_brlapi_exception(int err, brlapi_packetType_t t
78da24
 {
78da24
   static value *exception = NULL;
78da24
   int i;
78da24
+  CAMLparam0();
78da24
   CAMLlocal2(str, res);
78da24
   str = caml_alloc_string(size);
78da24
   for (i=0; i
78da24
@@ -169,6 +172,7 @@ static void BRLAPI_STDCALL raise_brlapi_exception(int err, brlapi_packetType_t t
78da24
   Store_field(res, 2, caml_copy_int32(type));
78da24
   Store_field(res, 3, str);
78da24
   caml_raise(res);
78da24
+  CAMLreturn0;
78da24
 }
78da24
 
78da24
 /* function packDots */