diff options
Diffstat (limited to 'clients')
-rw-r--r-- | clients/zctl/zctl.c | 12 | ||||
-rw-r--r-- | clients/znol/znol.c | 7 |
2 files changed, 10 insertions, 9 deletions
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; diff --git a/clients/znol/znol.c b/clients/znol/znol.c index 33f5096..009e5f7 100644 --- a/clients/znol/znol.c +++ b/clients/znol/znol.c @@ -24,19 +24,18 @@ static const char rcsid_znol_c[] = "$Id$"; #define OFF 0 int -main(int argc, - char *argv[]) +main(int argc, char *argv[]) { register char *cp; ZSubscription_t subs[SUBSATONCE]; ZLocations_t locations; - FILE *fp; + FILE *fp = NULL; struct passwd *pwd; char anyonename[BUFSIZ],name[BUFSIZ],cleanname[BUFSIZ],*envptr; char *comment_ptr; int onoff = ON,quiet = 0,justlist = 0,useronly = 0, filenamed = 0; int retval,arg,ind,one,numlocs,i; - int wgport; + int wgport = 0; if ((retval = ZInitialize()) != ZERR_NONE) { com_err(argv[0],retval,"initializing"); |