src/video/fbcon/SDL_fbvideo.c
changeset 1837 6987e947c77a
parent 1798 49b4b8413734
child 1895 c121d94672cb
child 3917 8a3a0f1179f3
--- a/src/video/fbcon/SDL_fbvideo.c	Mon May 15 12:22:58 2006 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Tue May 16 03:58:08 2006 +0000
@@ -160,13 +160,14 @@
 		ret = mmap(start, length, prot,
 		           (flags & ~MAP_SHARED) | MAP_PRIVATE, fd, offset);
 	}
+	return ret;
 }
 
 /* FB driver bootstrap functions */
 
 static int FB_Available(void)
 {
-	int console;
+	int console = -1;
 	/* Added check for /fb/0 (devfs) */
 	/* but - use environment variable first... if it fails, still check defaults */
 	int idx = 0;