From 097b29397b46c8d8041e504672f4bbc9415871be Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Tue, 31 May 2016 00:18:29 +0300 Subject: [PATCH] core: fixed bug with passing () expression; --- lib/sxmplv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sxmplv2.c b/lib/sxmplv2.c index cf76126..67bd9db 100644 --- a/lib/sxmplv2.c +++ b/lib/sxmplv2.c @@ -513,7 +513,7 @@ static int __eval_sysrpc(sxlink_t *link, sexp_t *sx, int builtin) if(builtin) rpc_list = link->hub->stream_rpc; else rpc_list = link->hub->system_rpc; - if(sx->ty == SEXP_LIST) rpcf = sx->list->val; + if(sx->ty == SEXP_LIST && sx->list != NULL) rpcf = sx->list->val; else return SXE_BADPROTO; /* find an appropriate function */