summaryrefslogtreecommitdiff
path: root/alarm_widget/src/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'alarm_widget/src/view.c')
-rwxr-xr-xalarm_widget/src/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alarm_widget/src/view.c b/alarm_widget/src/view.c
index 9bc48a4..0b0ef78 100755
--- a/alarm_widget/src/view.c
+++ b/alarm_widget/src/view.c
@@ -147,6 +147,7 @@ char* alarm_widget_set_week_day_weekly_text(widget_instance_data_s *wid)
_ALM_WIDGET_ENTER_;
retv_if(!wid, NULL);
retv_if(!wid->alm_details, NULL);
+ int i = 0;
char buf[BUF_LEN] = {0,};
int loc_weekly = wid->alm_details->weekly;
if (loc_weekly == 0) {
@@ -193,7 +194,7 @@ char* alarm_widget_set_week_day_weekly_text(widget_instance_data_s *wid)
else if (wid->alm_details->month == 11)
strncat(buf, "<color=#FFFFE3>Dec</color> ", BUF_LEN);
} else {
- for (int i = 0 ; i < 7 ; i++) {
+ for (i = 0 ; i < 7 ; i++) {
if (loc_weekly & (1 << i)) {
_D(" day selected in genlist");
if (i == 0)