diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 03:00:15 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 03:00:15 +0100 |
commit | 276b55eb6e4308cfaf6b18b457f514b2f9409cc5 (patch) | |
tree | 6384d65ebd1eec34e41da05d57abe79657406a97 | |
parent | 871d21e2555c345350ec951f1639b4a75dbd4fea (diff) | |
download | libsigrokdecode-276b55eb6e4308cfaf6b18b457f514b2f9409cc5.tar.gz libsigrokdecode-276b55eb6e4308cfaf6b18b457f514b2f9409cc5.zip |
Bugfix: Use only .py decoders, ignore .pyc files.
-rw-r--r-- | decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |