mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 03:32:04 +00:00
Fix bug in r_str_split_list() causing 1 length arrays for empty strings
This commit is contained in:
parent
7cb084d2bf
commit
20b5ebf501
@ -3380,7 +3380,9 @@ R_API RList *r_str_split_list(char *str, const char *c, int n) {
|
||||
*e++ = 0;
|
||||
}
|
||||
r_str_trim (aux);
|
||||
r_list_append (lst, aux);
|
||||
if (*aux) {
|
||||
r_list_append (lst, aux);
|
||||
}
|
||||
aux = e;
|
||||
}
|
||||
return lst;
|
||||
|
Loading…
x
Reference in New Issue
Block a user