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