Index: /tags/ipp-20101215/ippTools/src/magictool.c
===================================================================
--- /tags/ipp-20101215/ippTools/src/magictool.c	(revision 30402)
+++ /tags/ipp-20101215/ippTools/src/magictool.c	(revision 30403)
@@ -886,8 +886,13 @@
         return false;
     }
-    psArray *output = NULL;
-    if (psArrayLength(magicRuns)) {
-        output = psArrayAllocEmpty(100);
-
+    if (!psArrayLength(magicRuns)) {
+        // no magicRuns pending. Nothing to do
+        psTrace("magictool", PS_LOG_INFO, "no rows found");
+        psFree(magicRuns);
+        return true;
+    }
+
+    psArray *output = psArrayAllocEmpty(100);
+    // the following is indented because I removed a conditional and I decided not to shift over
         query = pxDataGet("magictool_toprocess_tree.sql");
         if (!query) {
@@ -989,5 +994,5 @@
             }
         }
-    }
+    // the above code is indented because I removed a conditional block and I decided not to shift it over
 
     // look for "inputs" that need to processed
