Index: trunk/psModules/src/config/pmConfig.c
===================================================================
--- trunk/psModules/src/config/pmConfig.c	(revision 10993)
+++ trunk/psModules/src/config/pmConfig.c	(revision 11041)
@@ -4,6 +4,6 @@
  *  @author EAM (IfA)
  *
- *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-01-09 03:57:58 $
+ *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-01-11 22:55:36 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1047,6 +1047,8 @@
 
 // convert the supplied name, create a new output psString
-psString pmConfigConvertFilename (char *filename, pmConfig *config)
-{
+psString pmConfigConvertFilename(const char *filename, const pmConfig *config)
+{
+    PS_ASSERT_STRING_NON_EMPTY(filename, NULL);
+    PS_ASSERT_PTR_NON_NULL(config, NULL);
 
     psString newName = psStringCopy (filename);
@@ -1065,4 +1067,6 @@
     // replace path://PATH with matched datapath
     if (!strncasecmp (newName, "path://", strlen("path://"))) {
+        PS_ASSERT_METADATA_NON_NULL(config->site, NULL);
+
         // filename should be of the form: path://PATH/rest/of/file
         // replace PATH with matching name from config->site:DATAPATH
@@ -1085,14 +1089,16 @@
         char *realpath = psMetadataLookupStr (NULL, datapath, path);
         if (realpath == NULL) {
-            psError(PS_ERR_UNKNOWN, true, "path (%s) not defined in config.site:DATAPATH for PATH-style name %s", path, newName);
-            psFree (newName);
-            psFree (path);
+            psError(PS_ERR_UNKNOWN, true,
+                    "path (%s) not defined in config.site:DATAPATH for PATH-style name %s",
+                    path, newName);
+            psFree(newName);
+            psFree(path);
             return false;
         }
-        psFree (path);
+        psFree(path);
 
         char *tmpName = NULL;
-        psStringAppend (&tmpName, "%s/%s", realpath, mark + 1);
-        psFree (newName);
+        psStringAppend(&tmpName, "%s/%s", realpath, mark + 1);
+        psFree(newName);
         newName = tmpName;
     }
