summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-01-15 03:00:15 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-01-15 03:00:15 +0100
commit276b55eb6e4308cfaf6b18b457f514b2f9409cc5 (patch)
tree6384d65ebd1eec34e41da05d57abe79657406a97
parent871d21e2555c345350ec951f1639b4a75dbd4fea (diff)
downloadlibsigrokdecode-276b55eb6e4308cfaf6b18b457f514b2f9409cc5.tar.gz
libsigrokdecode-276b55eb6e4308cfaf6b18b457f514b2f9409cc5.zip
Bugfix: Use only .py decoders, ignore .pyc files.
-rw-r--r--decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 7125d32..598b2ba 100644
--- 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);