From ac98fb231fbc35896a9a5cd8c74ecef0326e353c Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Mon, 8 Feb 2016 22:24:45 +0200 Subject: [PATCH] Added reservation for the built-in function names; --- lib/rpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rpc.c b/lib/rpc.c index 701a85f..8a74ce6 100644 --- a/lib/rpc.c +++ b/lib/rpc.c @@ -102,6 +102,8 @@ int sxmp_rpclist_add_function(usrtc_t *tree, int type, const char *fu_name, sxl_rpclist_t *rlist; sxl_rpc_t *rentry = NULL; + if(*fu_name == '!') return EINVAL; /* reserve such names for ither purposes */ + node = usrtc_lookup(tree, &type); if(!node) return ENOENT; else tlist = (rpc_typed_list_t *)usrtc_node_getdata(node);