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

gEDA-cvs: pcb.git: branch: master updated (ccae6f40fb7d339abab68784e40370974984d539)



The branch, master has been updated
       via  ccae6f40fb7d339abab68784e40370974984d539 (commit)
      from  089fbaf59c78fe75475db737e7e2827cd745d570 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/polygon1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit ccae6f40fb7d339abab68784e40370974984d539
Author: Bob Paddock <bobpspam@xxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Initialize min_dist to zero before using in if().

:100644 100644 8e9aa24... 0a3a2b5... M	src/polygon1.c

=========
 Changes
=========

commit ccae6f40fb7d339abab68784e40370974984d539
Author: Bob Paddock <bobpspam@xxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Initialize min_dist to zero before using in if().

diff --git a/src/polygon1.c b/src/polygon1.c
index 8e9aa24..0a3a2b5 100644
--- a/src/polygon1.c
+++ b/src/polygon1.c
@@ -3016,7 +3016,7 @@ poly_ComputeInteriorPoint (PLINE *poly, Vector v)
   VNODE *pt1, *pt2, *pt3, *q;
   VNODE *min_q = NULL;
   double dist;
-  double min_dist;
+  double min_dist = 0.0;
   double dir = (poly->Flags.orient == PLF_DIR) ? 1. : -1;
 
   /* Find a convex node on the polygon */




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs