aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-08-16 08:20:24 (GMT)
committerkraxel <kraxel>2006-08-16 08:20:24 (GMT)
commit8b02a25806f1c415d7b803073bcc98d2d2aa34bd (patch)
tree7895fa9fef8fb924b33b5255571870ab701f7fe5
parentd17834ddadc874fdc513f752137123afd23d38ff (diff)
fbida sync
-rw-r--r--console/fbtools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console/fbtools.c b/console/fbtools.c
index c3be2f6..12dc8fe 100644
--- a/console/fbtools.c
+++ b/console/fbtools.c
@@ -340,6 +340,7 @@ fb_init(char *device, char *mode, int vt)
device = getenv("FRAMEBUFFER");
if (NULL == device) {
struct fb_con2fbmap c2m;
+ memset(&c2m, 0, sizeof(c2m));
if (-1 == (fb = open(devices->fb0,O_RDWR /* O_WRONLY */,0))) {
fprintf(stderr,"open %s: %s\n",devices->fb0,strerror(errno));
exit(1);
@@ -351,7 +352,7 @@ fb_init(char *device, char *mode, int vt)
}
close(fb);
fprintf(stderr,"map: vt%02d => fb%d\n",
- c2m.console,c2m.framebuffer);
+ c2m.console, c2m.framebuffer);
sprintf(fbdev,devices->fbnr,c2m.framebuffer);
device = fbdev;
}

Privacy Policy