diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PerLine.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 7d574177d..6a3dd33dd 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -410,8 +410,7 @@ const unsigned char *LineAnnotation::Styles(int line) const { static char *AllocateAnnotation(int length, int style) { size_t len = sizeof(AnnotationHeader) + length + ((style == IndividualStyles) ? length : 0); - char *ret = new char[len]; - memset(ret, 0, len); + char *ret = new char[len](); return ret; } |