mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-25 20:52:20 +03:00
* view.c (view): Avoid passing an uninitialized color array to
create_dlg() - pass NULL instead.
This commit is contained in:
parent
8eb26481c1
commit
68f0b4b8b4
@ -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>
|
2002-08-30 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* color.c: Define global array alarm_colors for the colors used
|
* color.c: Define global array alarm_colors for the colors used
|
||||||
|
@ -2390,14 +2390,13 @@ Dlg_head *view_dlg;
|
|||||||
int
|
int
|
||||||
view (char *_command, const char *_file, int *move_dir_p, int start_line)
|
view (char *_command, const char *_file, int *move_dir_p, int start_line)
|
||||||
{
|
{
|
||||||
int midnight_colors [4];
|
|
||||||
int error;
|
int error;
|
||||||
WView *wview;
|
WView *wview;
|
||||||
WButtonBar *bar;
|
WButtonBar *bar;
|
||||||
Dlg_head *our_dlg;
|
Dlg_head *our_dlg;
|
||||||
|
|
||||||
/* Create dialog and widgets, put them on the dialog */
|
/* 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_mode_callback, "[Internal File Viewer]",
|
||||||
"view",
|
"view",
|
||||||
DLG_NONE);
|
DLG_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user