kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #16005
Re: [PATCH] Handle empty string in cvpcb GetModuleInfo()
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 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 ready
> for that), it think it makes sense to do it in here?
>
> Thanks,
>
> John
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
References