Fix possible reading/printing of uninitialized memory ()

This commit is contained in:
winterrace 2018-10-23 22:21:13 +02:00 committed by Christian W. Zuckschwerdt
parent 418078d8fc
commit 2c78e8a4b9
2 changed files with 8 additions and 1 deletions

7
.gitignore vendored
View file

@ -47,3 +47,10 @@ build/
*.orig
*~
*.tlog
*.ipdb
*.iobj
*.idb
*.lastbuildstate
*.db
*.opendb

View file

@ -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;
sdr_dev_t *dev = calloc(1, sizeof(sdr_dev_t));