Index: trunk/Ohana/src/opihi/cmd.data/accum.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/accum.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/accum.c	(revision 4689)
@@ -8,4 +8,5 @@
   Vector *val, *key, *out;
 
+  NV = NULL;
   Normalize = FALSE;
   if ((N = get_argument (argc, argv, "-norm"))) {
Index: trunk/Ohana/src/opihi/cmd.data/box.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/box.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/box.c	(revision 4689)
@@ -4,7 +4,6 @@
   
   int i, N, Ngraph, Xgraph;
-  char buffer[65], buffer2[65];
+  char Ticks[16], Axis[16], Labels[16];
   Graphdata graphmode;
-  char Ticks[16], Axis[16], Labels[16];
   
   strcpy (Ticks, "2222");
Index: trunk/Ohana/src/opihi/cmd.data/center.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/center.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/center.c	(revision 4689)
@@ -5,5 +5,4 @@
   double x, y;
   int zoom;
-  char buffer[512], buffer2[20];
   int Ximage, Nimage, N;
   
Index: trunk/Ohana/src/opihi/cmd.data/clip.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/clip.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/clip.c	(revision 4689)
@@ -7,4 +7,6 @@
   float *in;
   Buffer *buf;
+
+  inf_val = nan_val = min = Vmin = max = Vmax = 0;
 
   DO_NAN = FALSE;
Index: trunk/Ohana/src/opihi/cmd.data/dot.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/dot.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/dot.c	(revision 4689)
@@ -3,5 +3,5 @@
 int dot (int argc, char **argv) {
   
-  int N, Npts, Ngraph;
+  int N, Ngraph;
   Graphdata graphmode;
   float x, y;
Index: trunk/Ohana/src/opihi/cmd.data/erase.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/erase.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/erase.c	(revision 4689)
@@ -4,5 +4,4 @@
   
   int i, n, N;
-  char buffer[128];
   int Ximage, Nimage;
   
Index: trunk/Ohana/src/opihi/cmd.data/fft1d.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/fft1d.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/fft1d.c	(revision 4689)
@@ -12,10 +12,11 @@
   }
 
+  Iim = NULL;
   ZeroImaginary = TRUE;
-  if ((Ire = SelectVector (argv[1], OLDVECTOR, TRUE)) == NULL) return (FALSE);
   if (strcmp (argv[2], "0")) {
     ZeroImaginary = FALSE;
     if ((Iim = SelectVector (argv[2], OLDVECTOR, TRUE)) == NULL) return (FALSE);
   }    
+  if ((Ire = SelectVector (argv[1], OLDVECTOR, TRUE)) == NULL) return (FALSE);
   if ((Ore = SelectVector (argv[4], ANYVECTOR, TRUE)) == NULL) return (FALSE);
   if ((Oim = SelectVector (argv[5], ANYVECTOR, TRUE)) == NULL) return (FALSE);
Index: trunk/Ohana/src/opihi/cmd.data/fft2d.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/fft2d.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/fft2d.c	(revision 4689)
@@ -20,5 +20,5 @@
 
   /* select input / output buffers */
-  if ((Ire = SelectBuffer (argv[1], OLDBUFFER, TRUE)) == NULL) return (FALSE);
+  Iim = NULL;
   ZeroImaginary = TRUE; /* Input(imaginary) may be 0, in which case we create a 0 filled image */
   if (!strcmp (argv[2], "0")) { 
@@ -27,4 +27,5 @@
     if ((Iim = SelectBuffer (argv[2], OLDBUFFER, TRUE)) == NULL) return (FALSE);
   }    
+  if ((Ire = SelectBuffer (argv[1], OLDBUFFER, TRUE)) == NULL) return (FALSE);
   if ((Ore = SelectBuffer (argv[4], ANYBUFFER, TRUE)) == NULL) return (FALSE);
   if ((Oim = SelectBuffer (argv[5], ANYBUFFER, TRUE)) == NULL) return (FALSE);
Index: trunk/Ohana/src/opihi/cmd.data/fit.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/fit.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/fit.c	(revision 4689)
@@ -31,4 +31,6 @@
   }
 
+  dy = NULL;
+  dyvec = NULL;
   Weight = FALSE;
   if ((N = get_argument (argc, argv, "-dy"))) {
@@ -72,4 +74,7 @@
     ALLOCATE (b[i], double, 1);
   }
+
+  Nmask = 0;
+  sigma = 0.0;
 
   for (N = 0; N < ClipNiter; N++) {
Index: trunk/Ohana/src/opihi/cmd.data/fit2d.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/fit2d.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/fit2d.c	(revision 4689)
@@ -37,4 +37,6 @@
   }
 
+  dz = NULL;
+  dzvec = NULL;
   Weight = FALSE;
   if ((N = get_argument (argc, argv, "-dz"))) {
@@ -227,5 +229,5 @@
       }	
     }
-    if (VERBOSE) fprintf (stderr, "pass: %d, Nmask: %d\n", N, Nmask, ClipNSigma);
+    if (VERBOSE) fprintf (stderr, "pass: %d, Nmask: %d\n", N, Nmask);
   }
 
Index: trunk/Ohana/src/opihi/cmd.data/load.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/load.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/load.c	(revision 4689)
@@ -58,4 +58,5 @@
   SendGraphCommand (Ximage, 16, "OVER %9d ", n);
   
+  dx = dy = 0;
   for (n = 0; scan_line (f, line) != EOF;) {
     c = strchr (line, '#');
@@ -87,4 +88,8 @@
       ddec = dra;
     case 5:
+      x = ra;
+      y = dec;
+      dx = dra;
+      dy = ddec;
       if (ISCEL) {
 	if (!strcmp (type, "LINE")) {
@@ -106,10 +111,4 @@
 	  dx = (fabs(x1 - x) + fabs(y1 - y));
 	}
-      }
-      else {
-	x = ra;
-	y = dec;
-	dx = dra;
-	dy = ddec;
       }
     }
Index: trunk/Ohana/src/opihi/cmd.data/peak.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/peak.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/peak.c	(revision 4689)
@@ -23,5 +23,7 @@
 
   imax = -1;
-  for (i = 0; i < vecx[0].Nelements-1; i++, X++, Y++) {
+  xmax = *X;
+  ymax = *Y;
+  for (i = 1; i < vecx[0].Nelements-1; i++, X++, Y++) {
     if ((*X >= start) && (*X <= end)) {
       if ((imax == -1) || (*Y > ymax)) {
Index: trunk/Ohana/src/opihi/cmd.data/point.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/point.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/point.c	(revision 4689)
@@ -7,5 +7,4 @@
   double x, y, dx, dy, x1, y1;
   double dra, ddec, ra1, dec1, ra, dec;
-  char *line;
   Coords coords;
   Buffer *buf;
Index: trunk/Ohana/src/opihi/cmd.data/radial.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/radial.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/radial.c	(revision 4689)
@@ -12,4 +12,5 @@
 
   Ignore = FALSE;
+  IgnoreValue = 0;
   if ((N = get_argument (argc, argv, "-ignore"))) {
     Ignore = TRUE;
Index: trunk/Ohana/src/opihi/cmd.data/rd.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/rd.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/rd.c	(revision 4689)
@@ -68,4 +68,6 @@
   strcpy (buf[0].file, filename);
   free (filename);
+
+  status = FALSE;
 
   if (extend) {
Index: trunk/Ohana/src/opihi/cmd.data/rebin.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/rebin.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/rebin.c	(revision 4689)
@@ -10,4 +10,5 @@
   Buffer *in, *out;
 
+  Vn = Npix = NULL;
   Normalize = FALSE;
   if ((N = get_argument (argc, argv, "-norm"))) {
Index: trunk/Ohana/src/opihi/cmd.data/save.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/save.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/save.c	(revision 4689)
@@ -4,5 +4,4 @@
   
   int N, n, ISCEL;
-  char buffer[512], buffer2[512];
   int Ximage, Nimage;
   
Index: trunk/Ohana/src/opihi/cmd.data/section.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/section.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/section.c	(revision 4689)
@@ -4,7 +4,6 @@
   
   int N, List;
-  char buffer[65], buffer2[65];
+  int Ngraph, Xgraph;
   Graphdata graphmode;
-  int Ngraph, Xgraph;
 
   List = FALSE;
Index: trunk/Ohana/src/opihi/cmd.data/sort.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/sort.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/sort.c	(revision 4689)
@@ -16,4 +16,5 @@
   ALLOCATE (vec, Vector *, Nvec);
 
+  Nval = 0;
   /* find vectors and check sizes */
   for (i = 0; i < Nvec; i++) {
Index: trunk/Ohana/src/opihi/cmd.data/stats.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/stats.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/stats.c	(revision 4689)
@@ -10,4 +10,5 @@
   Buffer *buf;
 
+  IgnoreValue = 0;
   Ignore = FALSE;
   if ((N = get_argument (argc, argv, "-ignore"))) {
@@ -64,5 +65,5 @@
   /* calculate mode, median */
   median = mode = 0.5*(max + min);
-  if (range != 0) {
+  if ((max - min) != 0) {
     range = 0xffff / (max - min);
     ALLOCATE (hist, int, 0x10000);
Index: trunk/Ohana/src/opihi/cmd.data/textline.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/textline.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/textline.c	(revision 4689)
@@ -4,5 +4,5 @@
 
   int N, size, FracPositions;
-  char name[64], buffer[128];
+  char name[64];
   double x, y, angle;
   int Ngraph, Xgraph;
Index: trunk/Ohana/src/opihi/cmd.data/tv.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/tv.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/tv.c	(revision 4689)
@@ -3,6 +3,6 @@
 int tv (int argc, char **argv) {
   
-  int N, j, status, Npix, Ncolors, size, ISLOG, NNcol;
-  char buffer[1024], buffer2[100];
+  int N, j, Npix, Ncolors, size, ISLOG, NNcol;
+  char buffer[1024];
   double a1, a2, max, min, zero, range;
   float *in;
Index: trunk/Ohana/src/opihi/cmd.data/tvcontour.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/tvcontour.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/tvcontour.c	(revision 4689)
@@ -69,5 +69,5 @@
   float *v00, *v01, *v10, *v11;
   float *Vout, *Vin, *matrix;
-  char *buffer, line[17];
+  char *buffer;
   int Ximage, Nimage, N;
   Buffer *buf;
Index: trunk/Ohana/src/opihi/cmd.data/tvgrid.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/tvgrid.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/tvgrid.c	(revision 4689)
@@ -9,5 +9,5 @@
   double x0, y0, x1, y1;
   double dDEC, fDEC, dRA, fRA;
-  char buffer[1024], format[16];
+  char format[16];
   Coords coords;
   int Ximage, Nimage, N;
@@ -83,4 +83,5 @@
   NY = buf[0].header.Naxis[1];
 
+  x0 = y0 = 0;
   dRA = MAX (fabs(ra1 - ra0) / 100.0, 0.1);
   connect = FALSE;
Index: trunk/Ohana/src/opihi/cmd.data/vbin.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/vbin.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/vbin.c	(revision 4689)
@@ -11,4 +11,6 @@
   Buffer *in, *out;
 
+  Npix = NULL;
+  Vn = NULL;
   Normalize = FALSE;
   if ((N = get_argument (argc, argv, "-norm"))) {
Index: trunk/Ohana/src/opihi/cmd.data/vclip.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/vclip.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/vclip.c	(revision 4689)
@@ -7,4 +7,6 @@
   float *in;
   Vector *vec;
+
+  inf_val = nan_val = min = Vmin = max = Vmax = 0;
 
   DO_NAN = FALSE;
Index: trunk/Ohana/src/opihi/cmd.data/vstat.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/vstat.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/vstat.c	(revision 4689)
@@ -12,4 +12,5 @@
   Vector *vec;
 
+  IgnoreValue = 0;
   Ignore = FALSE;
   if ((N = get_argument (argc, argv, "-ignore"))) {
Index: trunk/Ohana/src/opihi/cmd.data/wd.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/wd.c	(revision 4688)
+++ trunk/Ohana/src/opihi/cmd.data/wd.c	(revision 4689)
@@ -17,5 +17,6 @@
   }
 
-  newZero  = FALSE;
+  outZero = 0;
+  newZero = FALSE;
   if ((N = get_argument (argc, argv, "-bzero"))) {
     remove_argument (N, &argc, argv);
@@ -25,4 +26,5 @@
   }
 
+  outScale = 1;
   newScale = FALSE;
   if ((N = get_argument (argc, argv, "-bscale"))) {
@@ -33,4 +35,5 @@
   }
 
+  outBitpix = 16;
   newBitpix = FALSE;
   if ((N = get_argument (argc, argv, "-bitpix"))) {
@@ -41,4 +44,5 @@
   }
 
+  outUnsign = FALSE;
   newUnsign = FALSE;
   if ((N = get_argument (argc, argv, "-unsign"))) {
