<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
The argument to init_ewald_tab is a pointer to type ewald_tab_t,
which is itself a pointer type. This latter pointer is being
allocated. So it's fine.<br>
<br>
Cheers,<br>
<br>
Berk<br>
<br>
On 05/15/2014 06:54 PM, Rui Fartaria wrote:<br>
</div>
<blockquote
cite="mid:CAEDk_6fuPP5OML_qq=VQHwU9=si6g9nWhSrczgTtd8304VsXpA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi all,<br>
<br>
</div>
I could not find this as reported yet so, here it goes:<br>
<br>
init_ewald_tab allocates space (snew(*et, 1);) for the *et
memory reference that is passed to it.<br>
<br>
</div>
In all places I saw it being called the reference passed is
not of a pointer but always of a normal variable.<br>
</div>
<br>
Anyway, I think the correct procedure here would be for the
caller to allocate space and then call init_ewald_tab. This is
because the function does not know what is being passed to it.<br>
<br>
</div>
Kind regards,<br>
<br>
Rui Fartaria<br>
<br>
<br>
<div>
<div>
<div><br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>