Skip to content

Commit 35eb134

Browse files
author
Evan Lezar
committed
Merge branch 'fix-wsl2-segfault' into 'main'
Fix segfault when detecting firmware on WSL2 See merge request nvidia/container-toolkit/libnvidia-container!204
2 parents 4f9417e + c506076 commit 35eb134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvc_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ lookup_firmwares(struct error *err, struct dxcore_context *dxcore, struct nvc_dr
434434
{
435435
(void)flags;
436436

437-
glob_t gl;
437+
glob_t gl = {0};
438438
char glob_path[PATH_MAX];
439439
char *firmware_path = NULL;
440440
int rv = -1;

0 commit comments

Comments
 (0)