From 73b6989bdc0066caa4d8c351127345d7785feb92 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 27 Dec 2010 18:38:46 +0300 Subject: fix compilation warnings --- accel-pptpd/cli/std_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pptpd/cli/std_cmd.c') diff --git a/accel-pptpd/cli/std_cmd.c b/accel-pptpd/cli/std_cmd.c index 50f3459..fb830dc 100644 --- a/accel-pptpd/cli/std_cmd.c +++ b/accel-pptpd/cli/std_cmd.c @@ -100,7 +100,7 @@ static int show_ses_exec(const char *cmd, char * const *fields, int fields_cnt, int order = ORDER_NONE; int match = MATCH_NONE; struct row_t *row, *row2, *row3; - pcre *re; + pcre *re = NULL; const char *pcre_err; int pcre_offset; LIST_HEAD(rows); @@ -302,7 +302,7 @@ static int terminate_exec2(int key, char * const *f, int f_cnt, void *cli) { struct ppp_t *ppp; int hard = 0; - in_addr_t ipaddr; + in_addr_t ipaddr = 0; if (f_cnt == 4) { if (!strcmp(f[3], "hard")) -- cgit v1.2.3