Fix a few unitialized variables found by purify (thanks to Michael Schmitt for pointing these out)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@400 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-01-05 13:09:19 +00:00
parent 7f3b99126a
commit 4ac276c4fb
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/mathed/math_defs.h (MathedRowSt): make sure that all
members of the struct are correctly initialized to 0 (detected by
purify)
* src/lyxrc.C (LyXRC): ditto for print_adapt_output.
2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.

View File

@ -233,6 +233,7 @@ LyXRC::LyXRC()
// Get printer from the environment. If fail, use default "",
// assuming that everything is set up correctly.
printer = GetEnv("PRINTER");
print_adapt_output = false;
print_command = "dvips";
print_evenpage_flag = "-B";
print_oddpage_flag = "-A";

View File

@ -426,6 +426,9 @@ struct MathedRowSt {
///
MathedRowSt(int n) {
w = new int[n + 1]; // this leaks
asc = desc = y = 0;
for (int i = 0 ; i < n + 1 ; ++i)
w[i] = 0;
next = 0;
label = 0;
numbered = true;