[PATCH] Fix PR remote/15974
Pedro Alves
palves@redhat.com
Mon Dec 2 10:02:00 GMT 2013
On 12/02/2013 06:39 AM, Yao Qi wrote:
> On 11/30/2013 04:57 PM, Pedro Alves wrote:
>> Instead of setting and unsetting NC at each iteration, the "canonical" way
>> for this sort of thing is to check whether the loop ended:
>>
>> - if (nc == NULL)
>> + for (i == ARRAY_SIZE (notifs))
>>
>> And then again, we don't really need NC in the loop. I think
>> this would look cleaner and clearer:
>
> OK, you've fixed that bug :). Pushed it for you.
Thanks.
--
Pedro Alves
More information about the Gdb-patches
mailing list