From 5c1f5ea426d5a771d6d40c9640b2ab9fc3b86f5d Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sun, 22 Jan 2017 05:49:43 +0000 Subject: [PATCH] Fix use of uninitialized variable. I don't know how gcc didn't catch this. This was caught during test building with clang. --- sys/powerpc/mpc85xx/fsl_diu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/mpc85xx/fsl_diu.c b/sys/powerpc/mpc85xx/fsl_diu.c index 91675e43ec08..bb22a93bd3b5 100644 --- a/sys/powerpc/mpc85xx/fsl_diu.c +++ b/sys/powerpc/mpc85xx/fsl_diu.c @@ -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);