RichString: do not unnecessarily clean whole buffer

The local stack buffer does not need to be cleaned to zeros when
  - just initialized, cause the length is set to 0 and the first
    character is set to '\0', so all printing functions will safely stop
  - no further used, i.e. the variable goes out of scope
This commit is contained in:
Christian Göttsche
2021-03-07 15:31:41 +01:00
parent d9f2eacbc5
commit 1e806f9899
8 changed files with 22 additions and 22 deletions

View File

@ -94,7 +94,7 @@ static const char* alignedProcessFieldTitle(ProcessField field) {
}
void ProcessList_printHeader(const ProcessList* this, RichString* header) {
RichString_prune(header);
RichString_rewind(header, RichString_size(header));
const Settings* settings = this->settings;
const ProcessField* fields = settings->fields;