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

Re: gEDA-user: segmentation fault in pcb



Try this.

Index: print.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/print.c,v
retrieving revision 1.27
diff -p -2 -r1.27 print.c
*** print.c	30 Aug 2004 02:52:04 -0000	1.27
--- print.c	6 Oct 2004 19:51:33 -0000
*************** PrintBOM (void)
*** 1558,1562 ****
        pin_cnt++;
  
!       if (strcmp(pin->Number, "1") == 0)
  	{
  	  pin1x = (double) pin->X;
--- 1558,1564 ----
        pin_cnt++;
  
!       if (pin->Number == 0)
! 	/* Skip unnumbered pins */ ;
!       else if (strcmp(pin->Number, "1") == 0)
  	{
  	  pin1x = (double) pin->X;