Don't to test_xref_functions if gedcom_new_model failed.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 14 Oct 2002 18:48:50 +0000 (18:48 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 14 Oct 2002 18:48:50 +0000 (18:48 +0000)
t/src/update.c

index cc983768e6fef906efe39661fac83cd8d42b1642..fc0e0797f848c69addee1c06f10461512b010704 100644 (file)
@@ -161,7 +161,8 @@ int main(int argc, char* argv[])
   output_open();
   
   result = gedcom_new_model();
-  result |= test_xref_functions();
+  if (result == 0)
+    result |= test_xref_functions();
   if (result == 0) {
     output(1, "Test succeeded\n");
   }