mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Fix use of uninitialized variable.
I don't know how gcc didn't catch this. This was caught during test building with clang.
This commit is contained in:
parent
a2d74cc30b
commit
5c1f5ea426
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312613
@ -344,7 +344,7 @@ diu_init(struct diu_softc *sc)
|
||||
static int
|
||||
diu_attach(device_t dev)
|
||||
{
|
||||
struct edid_info *edid;
|
||||
struct edid_info edid;
|
||||
struct diu_softc *sc;
|
||||
const struct videomode *videomode;
|
||||
void *edid_cells;
|
||||
@ -384,7 +384,7 @@ diu_attach(device_t dev)
|
||||
}
|
||||
}
|
||||
if (edid_cells != NULL) {
|
||||
if (edid_parse(edid_cells, edid) != 0) {
|
||||
if (edid_parse(edid_cells, &edid) != 0) {
|
||||
device_printf(dev, "Error parsing EDID\n");
|
||||
OF_prop_free(edid_cells);
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user