Index: trunk/Ohana/src/opihi/dvo/LoadImages.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/LoadImages.c	(revision 3393)
+++ trunk/Ohana/src/opihi/dvo/LoadImages.c	(revision 3402)
@@ -1,8 +1,8 @@
 # include "dvo.h"
 
-Image *LoadImages (int *Nimage) {
+Image *LoadImages (int *nimage) {
 
   char filename[256];
-  int nimage, NIMAGE;
+  int Nimage, NIMAGE;
   FILE *f;
   Header header;
@@ -11,4 +11,5 @@
   VarConfig ("IMAGE_CATALOG", "%s", filename);
 
+  *nimage = 0;
   NIMAGE = 0;
   Nimage = 0;
@@ -37,11 +38,11 @@
   ALLOCATE (image, Image, NIMAGE);
   fseek (f, header.size, SEEK_SET); 
-  nimage = Fread (image, sizeof(Image), NIMAGE, f, "image");
-  if (nimage != NIMAGE) {
-    fprintf (stderr, "failed to read in all images (%d of %d)\n", nimage, NIMAGE);
+  Nimage = Fread (image, sizeof(Image), NIMAGE, f, "image");
+  if (Nimage != NIMAGE) {
+    fprintf (stderr, "failed to read in all images (%d of %d)\n", Nimage, NIMAGE);
   }
 
   fclose (f);
-  *Nimage = nimage;
+  *nimage = Nimage;
   return (image);
 }
