aboutsummaryrefslogtreecommitdiffstats
path: root/x11-drivers
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2017-01-14 07:29:58 +0800
committerbapt <bapt@FreeBSD.org>2017-01-14 07:29:58 +0800
commitff49b6e5b9b79bd899f25436377f2242e2eadeba (patch)
tree95cd21c2ccccc91df06a56596daa9b905f8ca926 /x11-drivers
parentfec71038afa8954b24e94473c32cad82ec229e7f (diff)
downloadfreebsd-ports-gnome-ff49b6e5b9b79bd899f25436377f2242e2eadeba.tar.gz
freebsd-ports-gnome-ff49b6e5b9b79bd899f25436377f2242e2eadeba.tar.zst
freebsd-ports-gnome-ff49b6e5b9b79bd899f25436377f2242e2eadeba.zip
Add patch to fix an uninitialized variable found in the SiS driver
PR: 214590 Submitted by: matthew@reztek.cz
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-video-sis/files/patch-src_init301.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-sis/files/patch-src_init301.c b/x11-drivers/xf86-video-sis/files/patch-src_init301.c
new file mode 100644
index 000000000000..a0f65ade71cd
--- /dev/null
+++ b/x11-drivers/xf86-video-sis/files/patch-src_init301.c
@@ -0,0 +1,11 @@
+--- src/init301.c.orig 2015-11-19 15:53:05.412011000 +0100
++++ src/init301.c 2015-11-19 15:53:24.734403000 +0100
+@@ -446,7 +446,7 @@ SiS_CR36BIOSWord23d(struct SiS_Private *
+ void
+ SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime)
+ {
+- unsigned int i, j;
++ unsigned int i, j = 0;
+
+ for(i = 0; i < delaytime; i++) {
+ j += SiS_GetReg(SiS_Pr->SiS_P3c4,0x05);