]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: fix SIGROKDECODE_DIR env variable brokenness
authorBert Vermeulen <redacted>
Tue, 28 Feb 2012 01:01:41 +0000 (02:01 +0100)
committerBert Vermeulen <redacted>
Tue, 28 Feb 2012 13:34:53 +0000 (14:34 +0100)
controller.c

index e169a5164dbeee9f7a9432cf2b3f7fd059caeab6..e49212ceab8d49a310446cac782ff01827506cea 100644 (file)
@@ -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;
                }