summaryrefslogtreecommitdiffstats
path: root/Documentation/video4linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-26 16:07:36 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 17:43:41 +0200
commitaeecea26234011c3fbf65ffa7d9c9525b486acab (patch)
treedcf6adbe2a8c25ed2ee9ceba490ddc4cea0a7561 /Documentation/video4linux
parentV4L/DVB (11223): gspca - doc: Add the 15b8:6001 webcam to the Documentation. (diff)
downloadlinux-aeecea26234011c3fbf65ffa7d9c9525b486acab.tar.xz
linux-aeecea26234011c3fbf65ffa7d9c9525b486acab.zip
V4L/DVB (11225): v4lgrab: fix compilation warnings
Documentation/video4linux/v4lgrab.c: In function ‘main’: Documentation/video4linux/v4lgrab.c:193: warning: ‘src_depth’ is used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘b’ may be used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘g’ may be used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘r’ may be used uninitialized in this function Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r--Documentation/video4linux/v4lgrab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/video4linux/v4lgrab.c b/Documentation/video4linux/v4lgrab.c
index d6e70bef8ad0..05769cff1009 100644
--- a/Documentation/video4linux/v4lgrab.c
+++ b/Documentation/video4linux/v4lgrab.c
@@ -105,8 +105,8 @@ int main(int argc, char ** argv)
struct video_picture vpic;
unsigned char *buffer, *src;
- int bpp = 24, r, g, b;
- unsigned int i, src_depth;
+ int bpp = 24, r = 0, g = 0, b = 0;
+ unsigned int i, src_depth = 16;
if (fd < 0) {
perror(VIDEO_DEV);