Message ID | 20180809051927.243483-5-amitay@ozlabs.org |
---|---|
State | Accepted |
Headers | show |
Series | Fix target selection (yet again) | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | master/apply_patch Successfully applied |
snowpatch_ozlabs/build-multiarch | success | Test build-multiarch on branch master |
diff --git a/src/main.c b/src/main.c index d7c8589..1ab0cff 100644 --- a/src/main.c +++ b/src/main.c @@ -181,10 +181,6 @@ static bool parse_list(const char *arg, int max, int *list, int *count) strcpy(str, arg); - for (i = 0; i < max; i++) { - list[i] = 0; - } - tmp = str; while ((tok = strtok_r(tmp, ",", &saveptr)) != NULL) { char *a, *b, *endptr, *saveptr2 = NULL;
This allows calling parse_list() multiple times to incrementally keep selecting entries for options -p/-c/-t/-l. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- src/main.c | 4 ---- 1 file changed, 4 deletions(-)