Fix some unintialized variables with -O3

Change-Id: I7c41b355a503f97501e9ecb768c77a80d1d7ef0c
This commit is contained in:
2013-10-08 11:45:49 +02:00
parent ffba9c2def
commit fb69480b9a
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -797,7 +797,7 @@ atf_error_t
atf_fs_mkdtemp(atf_fs_path_t *p)
{
atf_error_t err;
char *buf;
char *buf = NULL;
if (!check_umask(S_IRWXU, S_IRWXU)) {
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_error_t err;
char *buf;
char *buf = NULL;
int fd;
if (!check_umask(S_IRWXU, S_IRWXU)) {
+1 -1
View File
@@ -621,7 +621,7 @@ atf_process_exec_array(atf_process_status_t *s,
void (*prehook)(void))
{
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 };
PRE(outsb == NULL ||