diff options
-rw-r--r-- | mendeleev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mendeleev.c b/mendeleev.c index 770d37b..6436771 100644 --- a/mendeleev.c +++ b/mendeleev.c @@ -85,11 +85,10 @@ split (const char *tail) if (!el) break; - if (!head) - head = el; - if (last) last->sibs = el; + else + head = el; last = el; last->n = start; |