]> sigrok.org Git - libsigrokdecode.git/commitdiff
Bugfix: Use only .py decoders, ignore .pyc files.
authorUwe Hermann <redacted>
Sat, 15 Jan 2011 02:00:15 +0000 (03:00 +0100)
committerUwe Hermann <redacted>
Sat, 15 Jan 2011 02:00:15 +0000 (03:00 +0100)
decode.c

index 7125d32f44f9b63c6709d4ebe0fd5508814f14ce..598b2ba50be0c81299340bbe089ffdcd7a283009 100644 (file)
--- a/decode.c
+++ b/decode.c
@@ -60,7 +60,7 @@ int sigrokdecode_init(void)
                return SIGROKDECODE_ERR_DECODERS_DIR;
 
        while ((dp = readdir(dir)) != NULL) {
-               if (!strstr(dp->d_name, ".py"))
+               if (!g_str_has_suffix(dp->d_name, ".py"))
                        continue;
                if ((tmp = strdup(dp->d_name)))
                        list_pds = g_slist_append(list_pds, tmp);