mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-26 17:54:31 +00:00
quick fix
This commit is contained in:
parent
023ce014e7
commit
037e3be013
5
dwlb.c
5
dwlb.c
@ -1590,8 +1590,11 @@ main(int argc, char **argv)
|
||||
int v;
|
||||
if ((v = atoi(argv[i])) <= 0 || i + v >= argc)
|
||||
DIE("-tags: invalid arguments");
|
||||
if (tags)
|
||||
if (tags) {
|
||||
for (uint32_t j = 0; j < tags_l; j++)
|
||||
free(tags[j]);
|
||||
free(tags);
|
||||
}
|
||||
if (!(tags = malloc(v * sizeof(char *))))
|
||||
EDIE("malloc");
|
||||
for (int j = 0; j < v; j++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user