diff --git a/base/nagios.c b/base/nagios.c index a168e6380..e01f7358c 100644 --- a/base/nagios.c +++ b/base/nagios.c @@ -103,7 +103,7 @@ static void set_loadctl_defaults(void) static int test_path_access(const char *program, int mode) { char *envpath, *p, *colon; - int ret, our_errno = 1500; /* outside errno range */ + int ret = 0, our_errno = 1500; /* outside errno range */ if (program[0] == '/' || !(envpath = getenv("PATH"))) return access(program, mode); diff --git a/cgi/trends.c b/cgi/trends.c index c3b524919..e3b1eaeb0 100644 --- a/cgi/trends.c +++ b/cgi/trends.c @@ -381,7 +381,7 @@ int main(int argc, char **argv) { if(timeperiod_type == TIMEPERIOD_NEXTPROBLEM) { archived_state *temp_as; - time_t problem_t1, problem_t2 = 0; + time_t problem_t1 = 0, problem_t2 = 0; t1 = t2; t2 = current_time;