summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-09 11:44:27 +0100
committerBert Vermeulen <bert@biot.com>2013-12-09 11:44:27 +0100
commita6b52878af14944b52ed202478f038b1abcb0d07 (patch)
tree2702e3e51ee42eb1c681678893ea220bf82f4e77 /decoder.c
parenta90eeee1f0af5213f8e88788d0d2d715fad1d4c6 (diff)
downloadlibsigrokdecode-a6b52878af14944b52ed202478f038b1abcb0d07.tar.gz
libsigrokdecode-a6b52878af14944b52ed202478f038b1abcb0d07.zip
Avoid GError warning when unloading decoders.
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder.c b/decoder.c
index e3ffb01..af988cb 100644
--- a/decoder.c
+++ b/decoder.c
@@ -566,13 +566,12 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec)
SRD_API int srd_decoder_load_all(void)
{
GDir *dir;
- GError *error;
const gchar *direntry;
if (!srd_check_init())
return SRD_ERR;
- if (!(dir = g_dir_open(DECODERS_DIR, 0, &error))) {
+ if (!(dir = g_dir_open(DECODERS_DIR, 0, NULL))) {
srd_err("Unable to open %s for reading.", DECODERS_DIR);
return SRD_ERR_DECODERS_DIR;
}