]> sigrok.org Git - libsigrokdecode.git/commitdiff
Avoid GError warning when unloading decoders.
authorBert Vermeulen <redacted>
Mon, 9 Dec 2013 10:44:27 +0000 (11:44 +0100)
committerBert Vermeulen <redacted>
Mon, 9 Dec 2013 10:44:27 +0000 (11:44 +0100)
decoder.c

index e3ffb01288015d19e80b8cdba20fb3bdbd222325..af988cb8b3cf93708bc26a299c22f1bb85a22dfd 100644 (file)
--- 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;
        }