[Endpoint-commits] rev 5 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Sep 2 21:39:54 CDT 2003


Author: manish
Date: 2003-09-02 20:39:51 -0500 (Tue, 02 Sep 2003)
New Revision: 5

Modified:
   trunk/src/app.c
Log:
check for failed parsing before processing further


Modified: trunk/src/app.c
===================================================================
--- trunk/src/app.c	2003-09-03 01:38:45 UTC (rev 4)
+++ trunk/src/app.c	2003-09-03 01:39:51 UTC (rev 5)
@@ -96,17 +96,18 @@
   j_config_free (cf);
 
   /* TODO: multiple LUN */
-  {
-    RBCDisk *disk;
+  if (app)
+    {
+      RBCDisk *disk;
 
-    disk = g_hash_table_lookup (app->disks, GINT_TO_POINTER (0));
+      disk = g_hash_table_lookup (app->disks, GINT_TO_POINTER (0));
 
-    if (disk == NULL || rbc_disk_get_type (disk) == RBC_DISK_VIRTUAL)
-      {
-	endpoint_app_destroy (app);
-	app = NULL;
+      if (disk == NULL || rbc_disk_get_type (disk) == RBC_DISK_VIRTUAL)
+	{
+	  endpoint_app_destroy (app);
+	  app = NULL;
       }
-  }
+    }
 
   return app;
 }




More information about the Endpoint-commits mailing list