From 4bcfee0ef3f571ce627332bb26689d27ffcff388 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 13 Dec 2013 20:30:55 +0900 Subject: [PATCH] ecore - utils - makekeys - fix uniitialized arrays potential problem due to stak being filled or not. this fixes possible problems CID 1039547 and CID 1039546 --- src/utils/ecore/makekeys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/ecore/makekeys.c b/src/utils/ecore/makekeys.c index 5d8c979cf0..69383af416 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++)