projects
/
platform
/
adaptation
/
samsung_exynos
/
device-manager-plugin-exynos5433.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eddbfb4
)
ir: Initialize pattern variable
36/78536/1
accepted/tizen/common/20160706.142643
accepted/tizen/ivi/20160706.132805
accepted/tizen/mobile/20160706.131907
accepted/tizen/tv/20160706.131931
accepted/tizen/wearable/20160706.132039
submit/tizen/20160706.093354
author
pr.jung
<pr.jung@samsung.com>
Wed, 6 Jul 2016 04:15:14 +0000
(13:15 +0900)
committer
pr.jung
<pr.jung@samsung.com>
Wed, 6 Jul 2016 04:15:14 +0000
(13:15 +0900)
Change-Id: Iea9d4339a7e735aea68fed1b29e8cbcbe2d9c84a
Signed-off-by: pr.jung <pr.jung@samsung.com>
hw/ir/ir.c
patch
|
blob
|
history
diff --git
a/hw/ir/ir.c
b/hw/ir/ir.c
index
3201780
..
e1ae048
100644
(file)
--- a/
hw/ir/ir.c
+++ b/
hw/ir/ir.c
@@
-87,7
+87,7
@@
static int ir_transmit(int *frequency_pattern, int size)
len = (size - 1) * 4;
j = 0;
- pattern = (uint8_t *)
malloc(
sizeof(uint8_t) * len);
+ pattern = (uint8_t *)
calloc(1,
sizeof(uint8_t) * len);
for (i = 1; i < size; i++) {
pattern[j] = (uint8_t)(((unsigned int)frequency_pattern[i]) >> 0);
pattern[++j] = (uint8_t)(((unsigned int)frequency_pattern[i]) >> 8);