diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 20:30:55 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 21:26:05 +0900 |
commit | 4bcfee0ef3f571ce627332bb26689d27ffcff388 (patch) | |
tree | 8df77dadadfa52ae7f94f64011fac368c989ed5f | |
parent | 611714649bd522471c62fc37a7260840dd860e99 (diff) |
ecore - utils - makekeys - fix uniitialized arrays
potential problem due to stak being filled or not. this fixes possible
problems CID 1039547 and CID 1039546
-rw-r--r-- | src/utils/ecore/makekeys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/ecore/makekeys.c b/src/utils/ecore/makekeys.c index 5d8c979cf..69383af41 100644 --- a/src/utils/ecore/makekeys.c +++ b/src/utils/ecore/makekeys.c @@ -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++) |