starter: Replaced all usages of clone_str() with strdupnull().

This commit is contained in:
Tobias Brunner
2012-06-11 17:33:30 +02:00
parent e838c39ba9
commit 7cce0e96f2
3 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -81,7 +81,7 @@ section_or_include:
{
section_list_t *section = malloc_thing(section_list_t);
section->name = clone_str($2);
section->name = strdupnull($2);
section->kw = NULL;
section->next = NULL;
_parser_kw = &(section->kw);
@@ -96,7 +96,7 @@ section_or_include:
| CA STRING EOL
{
section_list_t *section = malloc_thing(section_list_t);
section->name = clone_str($2);
section->name = strdupnull($2);
section->kw = NULL;
section->next = NULL;
_parser_kw = &(section->kw);
@@ -137,7 +137,7 @@ statement_kw:
{
new = (kw_list_t *)malloc_thing(kw_list_t);
new->entry = entry;
new->value = clone_str($3);
new->value = strdupnull($3);
new->next = NULL;
if (_parser_kw_last)
_parser_kw_last->next = new;