Index: trunk/ppSub/src/ppSubCamera.c
===================================================================
--- trunk/ppSub/src/ppSubCamera.c	(revision 14806)
+++ trunk/ppSub/src/ppSubCamera.c	(revision 14808)
@@ -129,9 +129,9 @@
 
     pmFPAfile *sources = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.SOURCES", "SOURCES");
-    if (!sources) {
+    if (!status) {
         psError(PS_ERR_IO, false, "Failed to load file definition PPSUB.SOURCES");
         return false;
     }
-    if (ref->type != PM_FPA_FILE_CMF) {
+    if (sources->type != PM_FPA_FILE_CMF) {
         psError(PS_ERR_IO, true, "PPSUB.SOURCES is not of type CMF");
         return false;
