From a6b52878af14944b52ed202478f038b1abcb0d07 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 9 Dec 2013 11:44:27 +0100 Subject: Avoid GError warning when unloading decoders. --- decoder.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-70-g09d2