oleg-zinovev commented on a change in pull request #2183:
URL: https://github.com/apache/drill/pull/2183#discussion_r631771430



##########
File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/StringFunctions.java
##########
@@ -1425,7 +1419,7 @@ public void eval() {
       out.buffer = buffer = buffer.reallocIfNeeded((left.end - left.start) + 
(right.end - right.start));
       out.start = out.end = 0;
 
-      int id = 0;
+      int id;

Review comment:
       In this case, the id variable is also used in the next loop, as a 
pointer to where to continue writing




-- 
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.

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


Reply via email to