From e86b07cf9a4dfe2da0740551fbe4ab8d90801e85 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sun, 22 Mar 2009 18:30:19 +0000 Subject: paper over some more warnings --- clients/zctl/zctl.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'clients/zctl') diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c index 9937e0f..5707642 100644 --- a/clients/zctl/zctl.c +++ b/clients/zctl/zctl.c @@ -300,7 +300,8 @@ void set_var(int argc, char *argv[]) { int retval,setting_exp,i; - char *exp_level,*newargv[1]; + char *exp_level = NULL; + char *newargv[1]; char varcat[BUFSIZ]; if (argc < 2) { @@ -581,7 +582,7 @@ purge_subs(register ZSubscription_t *subs, char errbuf[BUFSIZ],subline[BUFSIZ]; char backup[BUFSIZ],ourline[BUFSIZ]; int delflag = NOT_REMOVED; - int keep; + int keep = 0; switch (which) { case SUBONLY: @@ -666,7 +667,7 @@ load_subs(int argc, #endif FILE *fp; int ind,unind,lineno,i,retval,type; - short wgport; + short wgport = 0; char *comma,*comma2,*file,subline[BUFSIZ]; if (argc > 2) { @@ -905,12 +906,13 @@ void current(int argc, char *argv[]) { - FILE *fp; + FILE *fp = NULL; char errbuf[BUFSIZ]; ZSubscription_t subs; int i,nsubs,retval,save,one,defs; short wgport; - char *file,backup[BUFSIZ]; + char backup[BUFSIZ]; + char *file = NULL; save = 0; defs = 0; -- cgit v1.2.3