aboutsummaryrefslogtreecommitdiffstats
path: root/fb/fbmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fb/fbmenu.c')
-rw-r--r--fb/fbmenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fb/fbmenu.c b/fb/fbmenu.c
index e92664b..6970014 100644
--- a/fb/fbmenu.c
+++ b/fb/fbmenu.c
@@ -145,8 +145,9 @@ int main(int argc, char **argv) {
exit(0);
}
deflt = argv[3];
-
- if (-1 == open("/dev/fb0",O_RDWR) && getenv("DISPLAY") == NULL) {
+
+ fb = open("/dev/fb0",O_RDWR);
+ if (-1 == fd && getenv("DISPLAY") == NULL) {
signal(SIGALRM, return_default);
alarm(atoi(argv[1]));
do {