From: Bert Vermeulen Date: Tue, 28 Feb 2012 01:01:41 +0000 (+0100) Subject: srd: fix SIGROKDECODE_DIR env variable brokenness X-Git-Tag: libsigrokdecode-0.1.0~43 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5154cadf4a143f6157a54aa4d2097dffe78c0f29;p=libsigrokdecode.git srd: fix SIGROKDECODE_DIR env variable brokenness --- 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; }