ecore - utils - makekeys - fix uniitialized arrays

potential problem due to stak being filled or not. this fixes possible
problems CID 1039547 and CID 1039546
This commit is contained in:
Carsten Haitzler 2013-12-13 20:30:55 +09:00
parent 611714649b
commit 4bcfee0ef3
1 changed files with 3 additions and 3 deletions

View File

@ -59,9 +59,9 @@ main(int argc, char **argv)
long unsigned int val;
char key[128], prefix[128];
char tab[TBLNUM];
unsigned short offsets[TBLNUM];
unsigned short indexes[TBLNUM];
long unsigned int values[TBLNUM];
unsigned short offsets[TBLNUM] = { 0 };
unsigned short indexes[TBLNUM] = { 0 };
long unsigned int values[TBLNUM] = { 0 };
char buf[1024];
for (l = 1; l < argc; l++)