Compacted chunk creation in ita_attr_command constructor

This commit is contained in:
Andreas Steffen
2014-10-05 12:55:38 +02:00
parent d6fb2cc6e3
commit e23cad3564
+1 -2
View File
@@ -91,8 +91,7 @@ METHOD(pa_tnc_attr_t, build, void,
{
return;
}
this->value = chunk_create(this->command, strlen(this->command));
this->value = chunk_clone(this->value);
this->value = chunk_clone(chunk_from_str(this->command));
}
METHOD(pa_tnc_attr_t, process, status_t,