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());
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)) {
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 ||
while (!kyua_error_is_set(error) &&
fgets_no_newline(line, sizeof(line), input) != NULL &&
strcmp(line, "") != 0) {
- char* key; char* value;
+ char* key = NULL; char* value = NULL;
error = parse_property(line, &key, &value);
if (!kyua_error_is_set(error)) {
const char* out_key = rewrite_property(key);
kyua_error_t error;
do {
- char* key; char* value;
+ char* key = NULL; char* value = NULL;
error = parse_property(line, &key, &value);
if (kyua_error_is_set(error))
break;
strcpy(*output, original);
return kyua_error_ok();
} else {
- char* current_path;
+ char* current_path= NULL;
kyua_error_t error;
error = kyua_fs_current_path(¤t_path);
Suff_AddTransform(char *line)
{
GNode *gn; /* GNode of transformation rule */
- Suff *s, /* source suffix */
- *t; /* target suffix */
+ Suff *s = NULL, /* source suffix */
+ *t = NULL; /* target suffix */
LstNode ln; /* Node for existing transformation */
ln = Lst_Find(transforms, line, SuffGNHasNameP);