]> sigrok.org Git - sigrok-qt.git/commitdiff
srd: extra module path can now optionally be passed to srd_init()
authorBert Vermeulen <redacted>
Sun, 12 Feb 2012 03:07:22 +0000 (04:07 +0100)
committerBert Vermeulen <redacted>
Sun, 12 Feb 2012 03:09:12 +0000 (04:09 +0100)
Also environment variable SIGROKDECODE_DIR, if present, is prepended
to the module path.

main.cpp

index 7b2a75d7861f41a81b29e44a170cb3579cfab3b8..de3932c25a40407d091ea72d63c6c1d1bceb6b63 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
        }
        qDebug() << "libsigrok initialized successfully.";
 
-       if (srd_init() != SRD_OK) {
+       if (srd_init(NULL) != SRD_OK) {
                qDebug() << "ERROR: libsigrokdecode init failed.";
                return 1;
        }