Skip to content

Commit a5d8d37

Browse files
committed
Remove redundant return value check in info_to_argv
Removed the check for the return value of the second split_strings_to_array call in the info_to_argv implementation. This value will always match the element count obtained from the first call, so the check is unnecessary.
1 parent a292fe0 commit a5d8d37

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/script_info.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@ static char **info_to_argv(const char *info, size_t info_size)
4848
char **argv = (char **)base;
4949
char *args = (char *) base + argv_size;
5050
memcpy(args, info, info_size);
51-
52-
size_t stored = split_strings_to_array(args, argv);
53-
if (stored != argc) {
54-
APP_ERROR("Argument count mismatch");
55-
free(base);
56-
return NULL;
57-
}
51+
split_strings_to_array(args, argv);
5852
return argv;
5953
}
6054

0 commit comments

Comments
 (0)