Initialize the "ret" before use it.
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 27 Aug 2013 07:30:44 +0000 (16:30 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 27 Aug 2013 07:30:44 +0000 (16:30 +0900)
Change-Id: I04ee8b29a340db192bbb467ac44c2e10fe376e77

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;