coeng
diff src/comp.cc @ 3:66d1762eb203
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 05 Feb 2015 23:20:20 +0200 |
parents | 4a1c9597f4d3 |
children | 49a2e70ac455 |
line diff
1.1 --- a/src/comp.cc Thu Feb 05 11:04:07 2015 +0200 1.2 +++ b/src/comp.cc Thu Feb 05 23:20:20 2015 +0200 1.3 @@ -32,7 +32,10 @@ 1.4 1.5 void register_component(const char *name, Component *(*cons_func)()) 1.6 { 1.7 - comp_cons[name] = cons_func; 1.8 + if(!comp_cons[name]) { 1.9 + printf("register component: %s\n", name); 1.10 + comp_cons[name] = cons_func; 1.11 + } 1.12 } 1.13 1.14 Component *create_component(const char *name)