summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c3
1 files changed, 3 insertions, 0 deletions
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;