aboutsummaryrefslogtreecommitdiffstats
path: root/vbe.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-07-12 14:55:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-07-12 14:55:31 +0000
commit2985bb8c4d2935579b6f33d616fd644b7e69b2eb (patch)
tree4bf2f043d4b105a94801802af048e325021839d4 /vbe.c
parentb7fd6792c30d1447f091f7ddfd2b78f69be71bf6 (diff)
downloadmonitor-edid-2985bb8c4d2935579b6f33d616fd644b7e69b2eb.tar
monitor-edid-2985bb8c4d2935579b6f33d616fd644b7e69b2eb.tar.gz
monitor-edid-2985bb8c4d2935579b6f33d616fd644b7e69b2eb.tar.bz2
monitor-edid-2985bb8c4d2935579b6f33d616fd644b7e69b2eb.tar.xz
monitor-edid-2985bb8c4d2935579b6f33d616fd644b7e69b2eb.zip
fix a segfault occuring on some boxes in monitor-get-edid-using-vbe, when using try-in-console
(was committed in CVS instead of SVN)
Diffstat (limited to 'vbe.c')
-rw-r--r--vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbe.c b/vbe.c
index c228f24..34914bc 100644
--- a/vbe.c
+++ b/vbe.c
@@ -294,10 +294,10 @@ int get_edid(char *edid)
(box_is_xbox() || vbe_check_vbe_info()) &&
vbe_get_edid_info(edid);
- FreeInt10();
#ifdef LRMI
if (!ok) ok = get_edid__old(edid);
#endif
+ FreeInt10();
} else if (getuid() != 0)
fprintf(stderr, "you must be root to run this program\n");