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:
11b3cd6
)
Fix prevent CID 16045
author
Sung-jae Park
<nicesj.park@samsung.com>
Mon, 22 Apr 2013 07:26:14 +0000
(16:26 +0900)
committer
Sung-jae Park
<nicesj.park@samsung.com>
Mon, 22 Apr 2013 07:26:14 +0000
(16:26 +0900)
Change-Id: I79051b4d54389ddbdcd3dda158b4986b69093b7d
src/fb.c
patch
|
blob
|
history
diff --git
a/src/fb.c
b/src/fb.c
index
b9687b8
..
305a0cc
100644
(file)
--- a/
src/fb.c
+++ b/
src/fb.c
@@
-555,6
+555,9
@@
int fb_get_size(struct fb_info *info, int *w, int *h)
int fb_size(struct fb_info *info)
{
+ if (!info)
+ return 0;
+
info->bufsz = info->w * info->h * s_info.depth;
return info ? info->bufsz : 0;
}