summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-02-16 22:02:40 -0500
committerKristian Høgsberg <krh@redhat.com>2009-02-16 22:02:40 -0500
commitf8b57585efa3e2dda68336065b7f3ec200a6d51e (patch)
treec9cfe594f2ecafabf0bc993ce6787e5f976835b5
parent934c0eb09283a8124eea9dfab25936006f356cfe (diff)
Actually do something with return value of getenv().
Oops.
-rw-r--r--eagle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eagle.c b/eagle.c
index 0c89432..d4d403d 100644
--- a/eagle.c
+++ b/eagle.c
@@ -117,7 +117,7 @@ eglLoadDriver(EGLDisplay display, const char *driverName)
if (geteuid() == getuid()) {
path = getenv("EAGLE_DRIVER_PATH");
if (path == NULL)
- getenv("LIBGL_DRIVERS_PATH");
+ path = getenv("LIBGL_DRIVERS_PATH");
}
if (path == NULL)
path = driDriverPath;