summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-12-31 11:48:12 +0000
committerEric Anholt <anholt@freebsd.org>2005-12-31 11:48:12 +0000
commit26462b9aa47179e724e78f0b3b1c86fd07f61d8d (patch)
tree7595f4cd7d715b8d02120963cdb7d760a311f763
parent7f2c7f9977d3e62c594d47ca8a5d7fefac2fc4de (diff)
Initialize sv.drm_dd_minor to "don't care" along with dd_major, to appease
valgrind.
-rw-r--r--libdrm/xf86drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index f1ea4fc6..9258ed00 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -423,6 +423,7 @@ static int drmOpenByBusid(const char *busid)
sv.drm_di_major = 1;
sv.drm_di_minor = 1;
sv.drm_dd_major = -1; /* Don't care */
+ sv.drm_dd_minor = -1; /* Don't care */
drmSetInterfaceVersion(fd, &sv);
buf = drmGetBusid(fd);
drmMsg("drmOpenByBusid: drmGetBusid reports %s\n", buf);