Initialize sv.drm_dd_minor to "don't care" along with dd_major, to appease

valgrind.
main
Eric Anholt 2005-12-31 11:48:12 +00:00
parent 7f2c7f9977
commit 26462b9aa4
1 changed files with 1 additions and 0 deletions

View File

@ -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);