Janitor - fix a couple of unitialized variables
authorellson <devnull@localhost>
Tue, 25 Apr 2006 16:44:19 +0000 (16:44 +0000)
committerellson <devnull@localhost>
Tue, 25 Apr 2006 16:44:19 +0000 (16:44 +0000)
lib/common/htmltable.c

index 61e02ff74ca926c5f2e34166182d11f6615566d3..ed53e9f6d716ee0bae148da281e01562672d8b97 100644 (file)
@@ -150,7 +150,7 @@ emit_htextlines(GVJ_t* job, int nlines, htextline_t* lines, pointf p,
     double offset=0.0;
     char *fname_ , *fcolor_;
     textline_t tl;
-    pointf p_;
+    pointf p_ = {0.0, 0.0};
     textitem_t* ti;
        
     center_x = p.x;
@@ -794,6 +794,8 @@ size_html_txt(htmltxt_t* ftxt, htmlenv_t* env)
     case AGEDGE:
        substrFn = substrEFn;
        break;
+    default:
+       substrFn = NULL;
     }
 
     for (i = 0; i < ftxt->nlines; i++) {