diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-25 20:23:53 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-25 20:23:53 +0000 |
commit | 81e44312b4976d5516f129f36a67fe381bcb6883 (patch) | |
tree | 01f7dcdce2275ab6026f0f56762500fc8fa0a54b /ListItem.c | |
parent | 93233a67ea124b8127b50b45cd91c95ca022f8e7 (diff) |
Use strdup explicitly
Diffstat (limited to 'ListItem.c')
-rw-r--r-- | ListItem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ ListItem* ListItem_new(const char* value, int key) { Object_setClass(this, LISTITEM_CLASS); ((Object*)this)->display = ListItem_display; ((Object*)this)->delete = ListItem_delete; - this->value = String_copy(value); + this->value = strdup(value); this->key = key; return this; } |