mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Use strdup explicitly
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user