summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-07-04 11:48:47 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-07-04 11:48:47 +0900
commit6095c9d8fe559456871f877ce09b054ce61f5789 (patch)
tree46102094c51c0b96dcbdce60d81819738dc81b6a
parent8cf3ec6c9fa6a1d8c8ebb2227f55f158b68fb269 (diff)
downloadlivebox-viewer-6095c9d8fe559456871f877ce09b054ce61f5789.tar.gz
livebox-viewer-6095c9d8fe559456871f877ce09b054ce61f5789.tar.bz2
livebox-viewer-6095c9d8fe559456871f877ce09b054ce61f5789.zip
Validate the pixmap for release_XX_pixmapsubmit/tizen_2.2/20130714.150903
Change-Id: I95559f72f21317757261de7e8394157bc16f98e6
-rw-r--r--src/livebox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/livebox.c b/src/livebox.c
index f96ae44..f5360e5 100644
--- a/src/livebox.c
+++ b/src/livebox.c
@@ -1889,8 +1889,8 @@ EAPI int livebox_release_lb_pixmap(struct livebox *handler, int pixmap)
{
struct packet *packet;
- if (!handler) {
- ErrPrint("Handler is NIL\n");
+ if (!handler || pixmap == 0) {
+ ErrPrint("Handler is NIL [%d]\n", pixmap);
return LB_STATUS_ERROR_INVALID;
}
@@ -2020,8 +2020,8 @@ EAPI int livebox_release_pd_pixmap(struct livebox *handler, int pixmap)
{
struct packet *packet;
- if (!handler) {
- ErrPrint("Handler is NIL\n");
+ if (!handler || pixmap == 0) {
+ ErrPrint("Handler is NIL [%d]\n", pixmap);
return LB_STATUS_ERROR_INVALID;
}