changed a comment
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ String_t* str_split(String_t* self, int* res_len, char c) {
|
||||
*res_len = 0;
|
||||
for (int i = 0; i < strlen(string); i++) {
|
||||
if (string[i] == c) {
|
||||
// if (flag) {
|
||||
// if (flag) { // this condition was here so that empty strings would be ignore
|
||||
(*res_len)++;
|
||||
flag = false;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user