diff options
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index 86cceaa42..c72addd65 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -19,6 +19,14 @@ IniItem::IniItem(IniGroup *parent, const char *name, size_t len) : next(NULL), v parent->last_item = &this->next; } +IniItem::IniItem(IniGroup *parent, const char *name, const char *value) : next(NULL), comment(NULL) +{ + this->name = strdup(name); + this->value = strdup(value); + *parent->last_item = this; + parent->last_item = &this->next; +} + IniItem::~IniItem() { free(this->name); |