From 8a01468302ed915f6efd6933836c27e60a019100 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 17 Oct 2013 23:52:15 +0200 Subject: Report invalid module name on decoder load --- decoder.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoder.c') 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; -- cgit v1.2.3-70-g09d2