Fix prevent CID 16045
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 22 Apr 2013 07:26:14 +0000 (16:26 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 22 Apr 2013 07:26:14 +0000 (16:26 +0900)
Change-Id: I79051b4d54389ddbdcd3dda158b4986b69093b7d

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;
 }