From b68316bd8d1f137334d4dfb305074f977c6b7fea Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Wed, 16 Jan 2013 03:34:18 +0000 Subject: [PATCH] elementary/cnp - do initialize memory to not fill dummy values. SVN revision: 82849 --- src/lib/elm_cnp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c index 7dee220..78ee848 100644 --- a/src/lib/elm_cnp.c +++ b/src/lib/elm_cnp.c @@ -1876,7 +1876,7 @@ _tempfile_new(int size) mode_t cur_umask; int len; - info = malloc(sizeof(Tmp_Info)); + info = calloc(1, sizeof(Tmp_Info)); if (!info) return NULL; tmppath = getenv("TMP"); if (!tmppath) tmppath = P_tmpdir; -- 2.7.4