fix scan-build issues

This commit is contained in:
vanhauser-thc
2021-02-07 07:51:29 +01:00
parent aeb7d70483
commit 0ad56167c5
11 changed files with 53 additions and 41 deletions

View File

@ -315,16 +315,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
u8 fortify_set = 0, asan_set = 0, x_set = 0, bit_mode = 0, shared_linking = 0,
preprocessor_only = 0, have_unroll = 0, have_o = 0, have_pic = 0,
have_c = 0;
u8 *name;
cc_params = ck_alloc((argc + 128) * sizeof(u8 *));
name = strrchr(argv[0], '/');
if (!name)
name = argv[0];
else
++name;
if (lto_mode) {
if (lto_flag[0] != '-')