* view.c (view): Avoid passing an uninitialized color array to

create_dlg() - pass NULL instead.
This commit is contained in:
Pavel Roskin 2002-08-31 04:30:57 +00:00
parent 8eb26481c1
commit 68f0b4b8b4
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-08-31 Pavel Roskin <proski@gnu.org>
* view.c (view): Avoid passing an uninitialized color array to
create_dlg() - pass NULL instead.
2002-08-30 Pavel Roskin <proski@gnu.org>
* color.c: Define global array alarm_colors for the colors used

View File

@ -2390,14 +2390,13 @@ Dlg_head *view_dlg;
int
view (char *_command, const char *_file, int *move_dir_p, int start_line)
{
int midnight_colors [4];
int error;
WView *wview;
WButtonBar *bar;
Dlg_head *our_dlg;
/* Create dialog and widgets, put them on the dialog */
our_dlg = create_dlg (0, 0, LINES, COLS, midnight_colors,
our_dlg = create_dlg (0, 0, LINES, COLS, NULL,
view_mode_callback, "[Internal File Viewer]",
"view",
DLG_NONE);