platform_unix.c
changeset 40 bac807d1f829
parent 36 9e60553d82bc
child 41 7edecb332efb
--- a/platform_unix.c	Fri May 28 12:52:11 2004 +0000
+++ b/platform_unix.c	Fri May 28 12:56:49 2004 +0000
@@ -318,15 +318,17 @@
             retval = 1;
         else
         {
-            if (strcmp(version, newversion) == 0)
+            if (strcmp(ptr, newversion) == 0)
+            {
                 _fatal("You seem to be all patched up already!");
+                retval = -1;
+            } /* if */
             else
             {
                 _fatal("This patch applies to version '%s', but you have '%s'.",
                         version, ptr);
+                retval = 0;
             } /* else */
-            free(mem);
-            return(0);
         } /* else */
     } /* if */
 
@@ -335,7 +337,7 @@
     if (io != NULL)
         fclose(io);
 
-    if (!retval) _fatal("Can't determine product's installed version.");
+    if (retval == 0) _fatal("Can't determine product's installed version.");
     return(retval);
 } /* parse_info_dot_plist */