diff options
author | kraxel <kraxel> | 2006-08-14 19:38:05 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-08-14 19:38:05 +0000 |
commit | c55cef8a5746323a490c488f55303061d031e5fd (patch) | |
tree | 8c516d670fbc56311845db1b0cef7a50cb4af659 /fbtools.c | |
parent | ce4746a8a815fa225010bcf268b34c56daf93beb (diff) | |
download | fbida-c55cef8a5746323a490c488f55303061d031e5fd.tar.gz |
make valgrind happy
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |