summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-01-16 03:34:18 +0000
committerChunEon Park <hermet@hermet.pe.kr>2013-01-16 03:34:18 +0000
commitb68316bd8d1f137334d4dfb305074f977c6b7fea (patch)
tree950311c0a1055ff017a878eb9841e7d41d0dca9d
parentb70667bd0e6f53988fafd8da41728f85d20ceb91 (diff)
elementary/cnp - do initialize memory to not fill dummy values.
SVN revision: 82849
-rw-r--r--src/lib/elm_cnp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 7dee220ae..78ee84836 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1876,7 +1876,7 @@ _tempfile_new(int size)
1876 mode_t cur_umask; 1876 mode_t cur_umask;
1877 int len; 1877 int len;
1878 1878
1879 info = malloc(sizeof(Tmp_Info)); 1879 info = calloc(1, sizeof(Tmp_Info));
1880 if (!info) return NULL; 1880 if (!info) return NULL;
1881 tmppath = getenv("TMP"); 1881 tmppath = getenv("TMP");
1882 if (!tmppath) tmppath = P_tmpdir; 1882 if (!tmppath) tmppath = P_tmpdir;