X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoder.c;h=01dcf0a823b6da56a798d646750e355bfdd3de52;hp=76f8682ad98a9d189287093511c5aa602f6f1027;hb=0169f19c53e195df2f96c4df731ad3214c59e20a;hpb=32cfb920625182c03eb4a4564ffdfa9d2b08f15c diff --git a/decoder.c b/decoder.c index 76f8682..01dcf0a 100644 --- a/decoder.c +++ b/decoder.c @@ -252,6 +252,9 @@ SRD_API int srd_decoder_load(const char *module_name) struct srd_probe *p; GSList *l; + if (!module_name) + return SRD_ERR_ARG; + srd_dbg("Loading protocol decoder '%s'.", module_name); py_basedec = py_method = py_attr = NULL;