Re: [Kicad-developers] [PATCH] Handle empty string in cvpcb GetModuleInfo()

2014-12-07 Thread Wayne Stambaugh
John, I committed your patch in the product branch r5315. Thank you for your contribution to KiCad. Cheers, Wayne On 11/20/2014 7:33 PM, John Beard wrote: > Hi, > > Here is a tiny patch to defend against asserts in debug mode when the > footprint list in cvpcb is empty. The aFootprintName was

[Kicad-developers] [PATCH] Handle empty string in cvpcb GetModuleInfo()

2014-11-20 Thread John Beard
Hi, Here is a tiny patch to defend against asserts in debug mode when the footprint list in cvpcb is empty. The aFootprintName was coming in as "" in that case. You could also check for an empty string at the call sites, but since this function already can return null (and thus callers should be