Skip to content

Commit 5cca071

Browse files
authored
Merge pull request #377 from Lastique/patch-1
Fix "possibly uninitialized" warning
2 parents 8e6a439 + 308c2e4 commit 5cca071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/export-buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static bool reconnect(NVDriver *drv) {
120120

121121
static void findGPUIndexFromFd(NVDriver *drv) {
122122
struct stat buf;
123-
int drmDeviceIndex;
123+
int drmDeviceIndex = 0;
124124
PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT = (PFNEGLQUERYDEVICESEXTPROC) eglGetProcAddress("eglQueryDevicesEXT");
125125
PFNEGLQUERYDEVICEATTRIBEXTPROC eglQueryDeviceAttribEXT = (PFNEGLQUERYDEVICEATTRIBEXTPROC) eglGetProcAddress("eglQueryDeviceAttribEXT");
126126
PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT = (PFNEGLQUERYDEVICESTRINGEXTPROC) eglGetProcAddress("eglQueryDeviceStringEXT");

0 commit comments

Comments
 (0)