Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep string alive over C function call (simonjbeaumont#21)
* Keep string alive over C function call To avoid the GC removing a string where C code writes a result, use it after the call. See also xapi-project/xen-api@bc053bb In the commit above, Sys.opaque_identity was used to keep the value alive. However, it is not available in the OCaml 4.02.3 compiler. Signed-off-by: Christian Lindig <christian.lindig@citrix.com> * Use "List.hd [s]" for using s Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
- Loading branch information