diff minijss/jloadxm.c @ 1239:2be42ba9fc39

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Mar 2015 18:45:13 +0200
parents 18baa42db260
children 47d8e5e0e592
line wrap: on
line diff
--- a/minijss/jloadxm.c	Fri Mar 06 18:14:03 2015 +0200
+++ b/minijss/jloadxm.c	Fri Mar 06 18:45:13 2015 +0200
@@ -1009,18 +1009,14 @@
     if (probe)
         return DMERR_OK;
 
-    /* Okay, allocate a module structure
-     */
-    module = jssAllocateModule();
-    if (module == NULL)
+    // Okay, allocate a module structure
+    if ((*ppModule = module = jssAllocateModule()) == NULL)
     {
         JSSERROR(DMERR_MALLOC, DMERR_MALLOC,
         "Could not allocate memory for module structure.\n");
     }
-    *ppModule = module;
 
-
-    // Convert and check the header data
+    // Convert the module header data
     module->moduleType      = jmdtXM;
     module->intVersion      = xmH.version;
 #ifndef JSS_LIGHT