From: Olivier Matz Date: Thu, 15 Nov 2018 17:17:38 +0000 (+0100) Subject: remember to check id X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5a2cf44a6e55a385d7095049f2e382d1a746b947;p=protos%2Flibecoli.git remember to check id --- diff --git a/libecoli/ecoli_node.c b/libecoli/ecoli_node.c index c02a8de..9789102 100644 --- a/libecoli/ecoli_node.c +++ b/libecoli/ecoli_node.c @@ -82,6 +82,7 @@ struct ec_node *ec_node_from_type(const struct ec_node_type *type, const char *i node->type = type; node->refcnt = 1; + // XXX check that id matches [_a-zA-Z][:-_0-9a-zA-Z]* node->id = ec_strdup(id); if (node->id == NULL) goto fail;