git.droids-corp.org
/
protos
/
libecoli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
57d77c2
)
remember to check id
author
Olivier Matz
<zer0@droids-corp.org>
Thu, 15 Nov 2018 17:17:38 +0000
(18:17 +0100)
committer
Olivier Matz
<zer0@droids-corp.org>
Thu, 15 Nov 2018 17:17:38 +0000
(18:17 +0100)
libecoli/ecoli_node.c
patch
|
blob
|
history
diff --git
a/libecoli/ecoli_node.c
b/libecoli/ecoli_node.c
index
c02a8de
..
9789102
100644
(file)
--- 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;
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;
node->id = ec_strdup(id);
if (node->id == NULL)
goto fail;