projects
/
platform
/
framework
/
web
/
livebox-viewer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf3ec6
)
Validate the pixmap for release_XX_pixmap
author
Sung-jae Park
<nicesj.park@samsung.com>
Thu, 4 Jul 2013 02:48:47 +0000
(11:48 +0900)
committer
Sung-jae Park
<nicesj.park@samsung.com>
Thu, 4 Jul 2013 02:48:47 +0000
(11:48 +0900)
Change-Id: I95559f72f21317757261de7e8394157bc16f98e6
src/livebox.c
patch
|
blob
|
history
diff --git
a/src/livebox.c
b/src/livebox.c
index
f96ae44
..
f5360e5
100644
(file)
--- 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;
}