Index: trunk/stac/src/stacCheckMemory.c
===================================================================
--- trunk/stac/src/stacCheckMemory.c	(revision 5743)
+++ trunk/stac/src/stacCheckMemory.c	(revision 5745)
@@ -4,5 +4,5 @@
 
 
-#define LEAKS "leaks.dat"		// File to which to write leaks data
+#define LEAKS "leaks.dat"               // File to which to write leaks data
 
 
@@ -10,9 +10,9 @@
 {
     psLogMsg("stac.memoryPrint", PS_LOG_INFO,
-	     "Memory block %d:\n"
-	     "\tFile %s, line %d, size %d\n"
-	     "\tPosts: %x %x %x\n",
-	     ptr->id, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
-	     *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));
+             "Memory block %d:\n"
+             "\tFile %s, line %d, size %d\n"
+             "\tPosts: %x %x %x\n",
+             ptr->id, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
+             *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));
     return 0;
 }
@@ -20,14 +20,14 @@
 
 void stacMemoryProblem(const psMemBlock* ptr, ///< the pointer to the problematic memory block.
-		       const char *file, ///< the file in which the problem originated
-		       psS32 lineno	///< the line number in which the problem originated
+                       const char *file, ///< the file in which the problem originated
+                       psS32 lineno     ///< the line number in which the problem originated
     )
 {
     psLogMsg("stac.checkMemory.corruption", PS_LOG_WARN,
-	     "Memory corruption detected in memBlock %d\n"
-	     "\tFile %s, line %d, size %d\n"
-	     "\tPosts: %x %x %x\n",
-	     ptr->id, file, lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
-	     (ptr + 1 + ptr->userMemorySize));
+             "Memory corruption detected in memBlock %d\n"
+             "\tFile %s, line %d, size %d\n"
+             "\tPosts: %x %x %x\n",
+             ptr->id, file, lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
+             (ptr + 1 + ptr->userMemorySize));
 }
 
@@ -36,6 +36,6 @@
 void stacCheckMemory(void)
 {
-    psMemBlock **leaks = NULL;		// List of leaks
-    FILE *leakFile;			// File to write leaks to
+    psMemBlock **leaks = NULL;          // List of leaks
+    FILE *leakFile;                     // File to write leaks to
 
     psTrace("stac.checkMemory", 1, "Checking for memory problems....\n");
@@ -44,6 +44,6 @@
 
     if ((leakFile = fopen(LEAKS, "w")) == NULL) {
-	fprintf(stderr, "Unable to open leaks file, %s\n", LEAKS);
-	return;
+        fprintf(stderr, "Unable to open leaks file, %s\n", LEAKS);
+        return;
     }
 
@@ -51,11 +51,12 @@
     psTrace("stac.checkMemory", 1, "%d leaks found.\n", nLeaks);
     for (int i = 0; i < nLeaks; i++) {
-	psLogMsg("stac.checkMemory.leaks", PS_LOG_WARN,
-		 "Memory leak detection: memBlock %d\n"
-		 "\tFile %s, line %d, size %d\n",
-		 leaks[i]->id, leaks[i]->file, leaks[i]->lineno, leaks[i]->userMemorySize);
+        psLogMsg("stac.checkMemory.leaks", PS_LOG_WARN,
+                 "Memory leak detection: memBlock %d\n"
+                 "\tFile %s, line %d, size %d\n",
+                 leaks[i]->id, leaks[i]->file, leaks[i]->lineno, leaks[i]->userMemorySize);
     }
 
-    int nCorrupted = psMemCheckCorruption(false); // Number of corrupted
+    int nCorrupted;                     // Number of corrupted memory blocks
+    nCorrupted = psMemCheckCorruption(false);
     psTrace("stac.checkMemory", 1, "%d memory blocks corrupted.\n", nCorrupted);
 
