LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0237-erts-Fix-doc-typo-for-enif_free_iovec.patch of Package erlang (Project home:Ledest:erlang:20)

From 249da1f79a877e3c79b661a9e520ea8910d14726 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Fri, 6 Apr 2018 16:53:18 +0200
Subject: [PATCH] erts: Fix doc typo for enif_free_iovec

---
 erts/doc/src/erl_nif.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index cabc07d020..8a9ae58e99 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -1292,7 +1292,7 @@ typedef struct {
 ErlNifIOVec *iovec = NULL;
 size_t max_elements = 128;
 ERL_NIF_TERM tail;
-if (!enif_inspect_iovec(NULL, max_elements, term, &tail, iovec))
+if (!enif_inspect_iovec(NULL, max_elements, term, &tail, &iovec))
   return 0;
 
 // Do things with the iovec
-- 
2.16.3