]> granicus.if.org Git - graphviz/commitdiff
janitor stuff - clean up some unitialized variable warnings
authorellson <devnull@localhost>
Tue, 8 Nov 2005 17:21:46 +0000 (17:21 +0000)
committerellson <devnull@localhost>
Tue, 8 Nov 2005 17:21:46 +0000 (17:21 +0000)
cmd/lefty/ws/x11/gcanvas.c
cmd/lefty/ws/x11/gpcanvas.c
cmd/lefty/ws/x11/gscroll.c
cmd/lefty/ws/x11/gview.c

index b1a43b0a58a72acdb57e1b336ff0541c89d18b0b..68a47c9cd166ac37bbb5d07a8e1d93ce6c0ef9c5 100644 (file)
@@ -951,6 +951,7 @@ int GCreadbitmap (Gwidget_t *widget, Gbitmap_t *bitmap, FILE *fp) {
     char c;
     int cmaxdiff, colori, colorn, bufn, bufi, step, x, y, k;
 
+    s.x = s.y = 0;
     if (!widget) {
         Gerr (POS, G_ERRNOPARENTWIDGET);
         return -1;
@@ -1300,6 +1301,7 @@ static int scalebitmap (
     y = 0;
     yr = o2n.y;
     yl = 0;
+    y2 = yr2 = yl2 = 0;
     for (yp = 0; yp < nsize.y; yp++) {
         x = 0;
         xr = o2n.x;
index d6705b99efacc31f80f7e9de9f090017c2eca4ed..8b9644f7f48e72425ff887307cb4103d4d37018a 100644 (file)
@@ -560,6 +560,7 @@ int GPreadbitmap (Gwidget_t *widget, Gbitmap_t *bitmap, FILE *fp) {
     char c;
     int bufn, bufi, step, x, y, k;
 
+    s.x = s.y = 0;
     if (!widget) {
         Gerr (POS, G_ERRNOPARENTWIDGET);
         return -1;
index 6a801654817b55a00f825ebc216694595d8a7633..b6d2da78eea7d9f538278c9a091c8ed663bc8d99 100644 (file)
@@ -193,6 +193,7 @@ int GSgetwidgetattr (Gwidget_t *widget, int attrn, Gwattr_t *attrp) {
     Gwidget_t *child;
     int ai, wi;
 
+    child = NULL;
     for (ai = 0; ai < attrn; ai++) {
         RESETARGS;
         switch (attrp[ai].id) {
index d07a5982ae5076129fc8af6988ab17e960383901..9591257cca4249ca6b727ac54482f5abcee8c7e6 100644 (file)
@@ -37,6 +37,7 @@ int GVcreatewidget (
     WVU->closing = FALSE;
     s = "LEFTY";
     ps.x = ps.y = MINVWSIZE;
+    po.x = po.y = 0;
     haveorigin = FALSE;
     RESETARGS;
     for (ai = 0; ai < attrn; ai++) {