Resolve prevent issue #CID 30646
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 27 Aug 2013 07:07:03 +0000 (16:07 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 27 Aug 2013 07:07:03 +0000 (16:07 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] CID30646
[problem] Uninitialized variable
[cause] Only in weird case, it could be happens.
[solution] Initialize the ret.
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I763088a3f2421a0661b7d0efd21181051200d062

src/livebox.c

index 8af633d..5834a3e 100644 (file)
@@ -481,7 +481,7 @@ static void delete_category_cb(struct livebox *handler, const struct packet *res
 static void lb_pixmap_acquired_cb(struct livebox *handler, const struct packet *result, void *data)
 {
        int pixmap;
-       int ret;
+       int ret = LB_STATUS_ERROR_INVALID;
        ret_cb_t cb;
        void *cbdata;
        struct cb_info *info = data;