Skip to content

Commit 742a4c4

Browse files
committed
Merge branch 'remotes/lorenzo/pci/tools'
- Zero-initialize pcitest param to avoid random "-d" setting (Shunyong Yang) * remotes/lorenzo/pci/tools: tools: PCI: Zero-initialize param
2 parents e3c825c + 224d803 commit 742a4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pci/pcitest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct pci_test {
4040

4141
static int run_test(struct pci_test *test)
4242
{
43-
struct pci_endpoint_test_xfer_param param;
43+
struct pci_endpoint_test_xfer_param param = {};
4444
int ret = -EINVAL;
4545
int fd;
4646

0 commit comments

Comments
 (0)