diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-11-20 23:14:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-11-20 23:14:43 +0000 |
commit | 6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed (patch) | |
tree | e8aa95d0611a7f14d9bcbdf1566d702e205423f9 /pencil_build.c | |
parent | dfce56be0d92c9859cb6ee5462dc7ce695311d8d (diff) | |
download | libpencil-6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed.tar.gz libpencil-6cad5b08da9bfe1a8bc0a2afc1a0c543eae558ed.tar.bz2 |
[project @ 2005-11-20 23:14:43 by jmb]
Fix pencil_colour comment.
Fix root group name being filled with ofla
svn path=/import/pencil/; revision=2476
Diffstat (limited to 'pencil_build.c')
-rw-r--r-- | pencil_build.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pencil_build.c b/pencil_build.c index d550f95..7e90123 100644 --- a/pencil_build.c +++ b/pencil_build.c @@ -33,6 +33,13 @@ struct pencil_diagram *pencil_create(void) return 0; } + root_group->group_name = strdup("root group"); + if (!root_group->group_name) { + free(root_group); + free(diagram); + return 0; + } + diagram->root = root_group; diagram->current_group = root_group; |