Re: [libvirt] [PATCH 1/6] Avoid Coverity FORWARD_NULL prior to strtok_r calls

2015-09-24 Thread John Ferlan
On 09/24/2015 04:13 AM, Ján Tomko wrote: > On Wed, Sep 23, 2015 at 07:18:28PM -0400, John Ferlan wrote: >> The 'strtok_r' function requires passing a NULL as the first parameter >> on subsequent calls in order to ensure the code picks up where it left >> off on a previous call. However, Coverity

Re: [libvirt] [PATCH 1/6] Avoid Coverity FORWARD_NULL prior to strtok_r calls

2015-09-24 Thread Ján Tomko
On Wed, Sep 23, 2015 at 07:18:28PM -0400, John Ferlan wrote: > The 'strtok_r' function requires passing a NULL as the first parameter > on subsequent calls in order to ensure the code picks up where it left > off on a previous call. However, Coverity doesn't quite realize this > and points out tha

[libvirt] [PATCH 1/6] Avoid Coverity FORWARD_NULL prior to strtok_r calls

2015-09-23 Thread John Ferlan
The 'strtok_r' function requires passing a NULL as the first parameter on subsequent calls in order to ensure the code picks up where it left off on a previous call. However, Coverity doesn't quite realize this and points out that if a NULL was passed in as the third argument it would result in a