liutang123 commented on code in PR #24003:
URL: https://github.com/apache/doris/pull/24003#discussion_r1319474012


##########
be/src/vec/runtime/vcsv_transformer.cpp:
##########
@@ -130,45 +135,45 @@ Status VCSVTransformer::write(const Block& block) {
                     // For example: For a double value 27361919854.929001,
                     // the direct output of using std::stringstream is 
2.73619e+10,
                     // and after conversion to a string, it outputs 
27361919854.929001
-                    char buffer[MAX_DOUBLE_STR_LENGTH + 2];
+                    char buffer[MAX_DOUBLE_STR_LENGTH + 2] = "\0";
                     double double_value =
                             *reinterpret_cast<const 
double*>(col.column->get_data_at(i).data);
                     buffer[0] = '\0';

Review Comment:
   This line can be removed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to