Index: mod_nsd/nsv.c =================================================================== RCS file: /usr/local/cvsroot/mod_nsd/nsv.c,v diff -u -r1.1.1.1 -r1.2 --- mod_nsd/nsv.c 13 Apr 2001 21:09:32 -0000 1.1.1.1 +++ mod_nsd/nsv.c 5 Jun 2001 12:07:12 -0000 1.2 @@ -39,7 +39,7 @@ } static void mm_free_func (void *cookie, void *ptr) { - return mm_free ((MM*)cookie, ptr); + mm_free ((MM*)cookie, ptr); } /* @@ -158,7 +158,7 @@ static int ns_rwlock (ClientData ignored, Tcl_Interp *interp, int argc, char **argv) { - int lock_idx, cmd; + int lock_idx, cmd = 0; int badargs = 0; char *endptr; @@ -365,7 +365,7 @@ mm_hash_elt *elt; int created; char *arg = NULL; - int rc; + int rc = 0; /* Do some basic arg checks */ @@ -485,7 +485,7 @@ static int nsv_array(ClientData dummy, Tcl_Interp *interp, int argc, char **argv) { - char *pattern, **largv; + char *pattern = 0, **largv; int i, created_p, cmd, largc, status = TCL_OK; mm_hash_table *hash; mm_hash_elt *elt; @@ -590,7 +590,7 @@ case 'g': case 'n': mm_hash_iter_init(hash, &search); - while (elt = mm_hash_iter_next(hash, &search)) { + while ((elt = mm_hash_iter_next(hash, &search))) { if (pattern == NULL || Tcl_StringMatch(elt->key, pattern)) { Tcl_AppendElement(interp, elt->key); if (cmd == 'g') {