Fix possible reading/printing of uninitialized memory (#840)
This commit is contained in:
parent
418078d8fc
commit
2c78e8a4b9
2 changed files with 8 additions and 1 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -47,3 +47,10 @@ build/
|
||||||
|
|
||||||
*.orig
|
*.orig
|
||||||
*~
|
*~
|
||||||
|
*.tlog
|
||||||
|
*.ipdb
|
||||||
|
*.iobj
|
||||||
|
*.idb
|
||||||
|
*.lastbuildstate
|
||||||
|
*.db
|
||||||
|
*.opendb
|
||||||
|
|
|
@ -55,7 +55,7 @@ int sdr_open(sdr_dev_t **out_dev, int *sample_size, char const *dev_query, int v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char vendor[256], product[256], serial[256];
|
char vendor[256] = "n/a", product[256] = "n/a", serial[256] = "n/a";
|
||||||
int r = -1;
|
int r = -1;
|
||||||
sdr_dev_t *dev = calloc(1, sizeof(sdr_dev_t));
|
sdr_dev_t *dev = calloc(1, sizeof(sdr_dev_t));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue