From: lokilee73 Date: Tue, 21 Nov 2017 12:48:13 +0000 (+0900) Subject: Common: initialize power_source X-Git-Tag: submit/tizen_4.0/20171205.105933~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0564912b503b9dab1c14405fd4ecb49ddd0b53f;p=platform%2Fcore%2Fapi%2Fdevice.git Common: initialize power_source Change-Id: I5c07aeed3379164d9c653b911a1ff080625b718b Signed-off-by: lokilee73 --- diff --git a/src/battery.c b/src/battery.c old mode 100644 new mode 100755 index 81bfa70..2134eb1 --- a/src/battery.c +++ b/src/battery.c @@ -115,7 +115,7 @@ static int device_battery_get_info(struct battery_info *info) GVariant *output = NULL; char *status = NULL; char *health = NULL; - char *power_source; + char *power_source = NULL; int online; int present; int capacity;