From: ellson Date: Tue, 25 Apr 2006 16:44:19 +0000 (+0000) Subject: Janitor - fix a couple of unitialized variables X-Git-Tag: LAST_LIBGRAPH~32^2~6683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69af1b780b4f34ba3eb1cb7e8671dcd73b79ae37;p=graphviz Janitor - fix a couple of unitialized variables --- diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 61e02ff74..ed53e9f6d 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -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++) {