mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
7f3b99126a
commit
4ac276c4fb
@ -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.
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user