<p>Hmm, interesting, I would expect errno to be reset by strtod (or any other function that relies on it to signal an error).</p>

<p>I pushed a patch to reset the errno. There could be another check to see if the second parameter is going to be the same as the first, but I thought the errno reset is simpler and good also for the other strtoX functions in that loop.</p>

<p>Re-open if you test and there are still some troubles.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/359#issuecomment-145691716">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQCwDsx6jf5Jf13XxDvM-Um1Ro6Kks5o4vcogaJpZM4GJW7W.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/359#issuecomment-145691716"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>