summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-02-28 02:01:41 +0100
committerBert Vermeulen <bert@biot.com>2012-02-28 14:34:53 +0100
commit5154cadf4a143f6157a54aa4d2097dffe78c0f29 (patch)
tree1a5b71142c0fbcda0ec8742d39a62e24d92da50e
parent708b3b84ea6b9ba3a60d5aa2a0ad56613ad8bbfd (diff)
downloadlibsigrokdecode-5154cadf4a143f6157a54aa4d2097dffe78c0f29.tar.gz
libsigrokdecode-5154cadf4a143f6157a54aa4d2097dffe78c0f29.zip
srd: fix SIGROKDECODE_DIR env variable brokenness
-rw-r--r--controller.c2
1 files changed, 1 insertions, 1 deletions
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;
}