Merge "Fix uninitialized value warnings."

This commit is contained in:
Chih-hung Hsieh 2022-12-22 00:06:15 +00:00 committed by Gerrit Code Review
commit cef5fbb2e9

View file

@ -177,7 +177,7 @@ strip_file(const string& path)
} else {
// Split the arguments if more than 1
char* cmd = strdup(strip_cmd);
const char** args = (const char**) malloc(sizeof(const char*) * (num_args + 2));
const char** args = (const char**) calloc((num_args + 2), sizeof(const char*));
const char** curr = args;
char* s = cmd;