From 5154cadf4a143f6157a54aa4d2097dffe78c0f29 Mon Sep 17 00:00:00 2001
From: Bert Vermeulen <bert@biot.com>
Date: Tue, 28 Feb 2012 02:01:41 +0100
Subject: srd: fix SIGROKDECODE_DIR env variable brokenness

---
 controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controller.c b/controller.c
index e169a51..e49212c 100644
--- a/controller.c
+++ b/controller.c
@@ -94,7 +94,7 @@ SRD_API int srd_init(char *path)
 
 	/* Environment variable overrides everything, for debugging. */
 	if ((env_path = getenv("SIGROKDECODE_DIR"))) {
-		if ((ret = add_modulepath(path)) != SRD_OK) {
+		if ((ret = add_modulepath(env_path)) != SRD_OK) {
 			Py_Finalize();
 			return ret;
 		}
-- 
cgit v1.2.3-70-g09d2