projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
871d21e
)
Bugfix: Use only .py decoders, ignore .pyc files.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 15 Jan 2011 02:00:15 +0000
(
03:00
+0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 15 Jan 2011 02:00:15 +0000
(
03:00
+0100)
decode.c
patch
|
blob
|
history
diff --git
a/decode.c
b/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);