Fix release build of dflat32, initalizing some vars and fixing one typo.
authorAndrew Munger <waxdragon@gmail.com>
Fri, 16 Sep 2005 18:00:49 +0000 (18:00 +0000)
committerAndrew Munger <waxdragon@gmail.com>
Fri, 16 Sep 2005 18:00:49 +0000 (18:00 +0000)
svn path=/trunk/; revision=17885

rosapps/dflat32/search.c
rosapps/dflat32/watch.c

index eb35b98..9e5f1b4 100644 (file)
@@ -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;
index 6da6f73..c4d882a 100644 (file)
@@ -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,