diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-07 15:31:41 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-17 15:54:17 +0100 |
commit | 1e806f9899600256cbcc540715261f461e11dd25 (patch) | |
tree | 292ef9c567e8a0c2b17758f25eab49120aebfcc1 /Process.c | |
parent | d9f2eacbc5b3fccf63b24944ce9a30d762baea3c (diff) |
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
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -406,7 +406,6 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field void Process_display(const Object* cast, RichString* out) { const Process* this = (const Process*) cast; const ProcessField* fields = this->settings->fields; - RichString_prune(out); for (int i = 0; fields[i]; i++) As_Process(this)->writeField(this, out, fields[i]); |