diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:30 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:30 +0200 |
commit | e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (patch) | |
tree | c4e410dd878ceed9fc058d14bad8011b423212fe /ListItem.c | |
parent | eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (diff) | |
download | debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.gz debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.bz2 debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.zip |
Imported Upstream version 1.0.1upstream/1.0.1
Diffstat (limited to 'ListItem.c')
-rw-r--r-- | ListItem.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -6,14 +6,17 @@ in the source distribution for its full text. */ #include "ListItem.h" + +#include "CRT.h" #include "String.h" -#include "Object.h" #include "RichString.h" -#include <string.h> -#include "debug.h" +#include <string.h> +#include <assert.h> +#include <stdlib.h> /*{ +#include "Object.h" typedef struct ListItem_ { Object super; @@ -49,7 +52,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; } |