From e03998d67c1d06e246c2bad55d46fd8333b84f75 Mon Sep 17 00:00:00 2001 From: Andrew Munger Date: Fri, 16 Sep 2005 18:00:49 +0000 Subject: [PATCH] Fix release build of dflat32, initalizing some vars and fixing one typo. svn path=/trunk/; revision=17885 --- rosapps/dflat32/search.c | 3 ++- rosapps/dflat32/watch.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rosapps/dflat32/search.c b/rosapps/dflat32/search.c index eb35b98e8d2..9e5f1b475d6 100644 --- a/rosapps/dflat32/search.c +++ b/rosapps/dflat32/search.c @@ -47,7 +47,8 @@ static void replacetext(DFWINDOW wnd, char *cp1, DF_DBOX *db) /* ------- search for the occurrance of a string ------- */ static void SearchTextBox(DFWINDOW wnd, int incr) { - char *s1 = NULL, *s2, *cp1; + char *s1 , *s2, *cp1; + s1 = s2 = cp1 = NULL; DF_DBOX *db = Replacing ? &ReplaceTextDB : &SearchTextDB; char *cp = DfGetEditBoxText(db, DF_ID_SEARCHFOR); BOOL rpl = TRUE, FoundOne = FALSE; diff --git a/rosapps/dflat32/watch.c b/rosapps/dflat32/watch.c index 6da6f73e95a..c4d882aa0c8 100644 --- a/rosapps/dflat32/watch.c +++ b/rosapps/dflat32/watch.c @@ -44,7 +44,7 @@ DFWINDOW DfWatchIcon(void) // (DF_PARAM) &mx, (DF_PARAM) &my); mx = 0;//DF_SCREENWIDTH / 2; - mx = 0;//DF_SCREENHEIGHT / 2; + my = 0;//DF_SCREENHEIGHT / 2; wnd = DfDfCreateWindow( DF_BOX, NULL,