[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: segmentation fault in pcb



I got another segmentation fault when optimizing the rats-nest.

This fixes it:
 diff -u rats.c rats-new.c
--- rats.c      2004-10-08 11:45:24.403804982 -0500
+++ rats-new.c  2004-10-08 11:46:05.630587592 -0500
@@ -153,6 +153,7 @@
        {
          for (i = 0; i < element->PinN; i++)
            if (!TEST_FLAG (HOLEFLAG, &element->Pin[i]) &&
+               element->Pin[i].Number &&
                strcmp (PinNum, element->Pin[i].Number) == 0 &&
                (!Same || !TEST_FLAG (DRCFLAG, &element->Pin[i])))
              {

Regards,
Mark
markrages@mlug.missouri.edu
-- 
You think that it is a secret, but it never has been one.