Fix some unintialized variables with -O3
Change-Id: I7c41b355a503f97501e9ecb768c77a80d1d7ef0c
This commit is contained in:
parent
ffba9c2def
commit
fb69480b9a
5 changed files with 8 additions and 8 deletions
4
external/bsd/atf/dist/atf-c/detail/fs.c
vendored
4
external/bsd/atf/dist/atf-c/detail/fs.c
vendored
|
@ -797,7 +797,7 @@ atf_error_t
|
||||||
atf_fs_mkdtemp(atf_fs_path_t *p)
|
atf_fs_mkdtemp(atf_fs_path_t *p)
|
||||||
{
|
{
|
||||||
atf_error_t err;
|
atf_error_t err;
|
||||||
char *buf;
|
char *buf = NULL;
|
||||||
|
|
||||||
if (!check_umask(S_IRWXU, S_IRWXU)) {
|
if (!check_umask(S_IRWXU, S_IRWXU)) {
|
||||||
err = invalid_umask_error(p, atf_fs_stat_dir_type, current_umask());
|
err = invalid_umask_error(p, atf_fs_stat_dir_type, current_umask());
|
||||||
|
@ -825,7 +825,7 @@ atf_error_t
|
||||||
atf_fs_mkstemp(atf_fs_path_t *p, int *fdout)
|
atf_fs_mkstemp(atf_fs_path_t *p, int *fdout)
|
||||||
{
|
{
|
||||||
atf_error_t err;
|
atf_error_t err;
|
||||||
char *buf;
|
char *buf = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (!check_umask(S_IRWXU, S_IRWXU)) {
|
if (!check_umask(S_IRWXU, S_IRWXU)) {
|
||||||
|
|
2
external/bsd/atf/dist/atf-c/detail/process.c
vendored
2
external/bsd/atf/dist/atf-c/detail/process.c
vendored
|
@ -621,7 +621,7 @@ atf_process_exec_array(atf_process_status_t *s,
|
||||||
void (*prehook)(void))
|
void (*prehook)(void))
|
||||||
{
|
{
|
||||||
atf_error_t err;
|
atf_error_t err;
|
||||||
atf_process_child_t c;
|
atf_process_child_t c = { .m_pid = 0, .m_stdout = 1, .m_stderr = 2 };
|
||||||
struct exec_args ea = { prog, argv, prehook };
|
struct exec_args ea = { prog, argv, prehook };
|
||||||
|
|
||||||
PRE(outsb == NULL ||
|
PRE(outsb == NULL ||
|
||||||
|
|
4
external/bsd/kyua-testers/dist/atf_list.c
vendored
4
external/bsd/kyua-testers/dist/atf_list.c
vendored
|
@ -256,7 +256,7 @@ parse_test_case(FILE* input, FILE* output, char* name)
|
||||||
while (!kyua_error_is_set(error) &&
|
while (!kyua_error_is_set(error) &&
|
||||||
fgets_no_newline(line, sizeof(line), input) != NULL &&
|
fgets_no_newline(line, sizeof(line), input) != NULL &&
|
||||||
strcmp(line, "") != 0) {
|
strcmp(line, "") != 0) {
|
||||||
char* key; char* value;
|
char* key = NULL; char* value = NULL;
|
||||||
error = parse_property(line, &key, &value);
|
error = parse_property(line, &key, &value);
|
||||||
if (!kyua_error_is_set(error)) {
|
if (!kyua_error_is_set(error)) {
|
||||||
const char* out_key = rewrite_property(key);
|
const char* out_key = rewrite_property(key);
|
||||||
|
@ -300,7 +300,7 @@ parse_tests(FILE* input, FILE* output)
|
||||||
kyua_error_t error;
|
kyua_error_t error;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
char* key; char* value;
|
char* key = NULL; char* value = NULL;
|
||||||
error = parse_property(line, &key, &value);
|
error = parse_property(line, &key, &value);
|
||||||
if (kyua_error_is_set(error))
|
if (kyua_error_is_set(error))
|
||||||
break;
|
break;
|
||||||
|
|
2
external/bsd/kyua-testers/dist/fs.c
vendored
2
external/bsd/kyua-testers/dist/fs.c
vendored
|
@ -518,7 +518,7 @@ kyua_fs_make_absolute(const char* original, char** const output)
|
||||||
strcpy(*output, original);
|
strcpy(*output, original);
|
||||||
return kyua_error_ok();
|
return kyua_error_ok();
|
||||||
} else {
|
} else {
|
||||||
char* current_path;
|
char* current_path= NULL;
|
||||||
kyua_error_t error;
|
kyua_error_t error;
|
||||||
|
|
||||||
error = kyua_fs_current_path(¤t_path);
|
error = kyua_fs_current_path(¤t_path);
|
||||||
|
|
|
@ -684,8 +684,8 @@ GNode *
|
||||||
Suff_AddTransform(char *line)
|
Suff_AddTransform(char *line)
|
||||||
{
|
{
|
||||||
GNode *gn; /* GNode of transformation rule */
|
GNode *gn; /* GNode of transformation rule */
|
||||||
Suff *s, /* source suffix */
|
Suff *s = NULL, /* source suffix */
|
||||||
*t; /* target suffix */
|
*t = NULL; /* target suffix */
|
||||||
LstNode ln; /* Node for existing transformation */
|
LstNode ln; /* Node for existing transformation */
|
||||||
|
|
||||||
ln = Lst_Find(transforms, line, SuffGNHasNameP);
|
ln = Lst_Find(transforms, line, SuffGNHasNameP);
|
||||||
|
|
Loading…
Reference in a new issue