platform_unix.c
changeset 63 10011b12af93
parent 59 9bfe24a8dd3b
child 64 8f4e25f1ceb5
--- a/platform_unix.c	Thu Jun 24 09:33:54 2004 +0000
+++ b/platform_unix.c	Sun Jun 27 14:25:49 2004 +0000
@@ -295,6 +295,7 @@
     long fsize;
     int retval = 0;
     FILE *io = NULL;
+    int knowver = 0;
 
     if ( !get_file_size(fname, &fsize) ) goto parse_info_plist_bailed;
     if ( (mem = malloc(fsize + 1)) == NULL ) goto parse_info_plist_bailed;
@@ -325,6 +326,7 @@
     ptr = find_info_plist_version(mem);
     if (ptr != NULL)
     {
+        knowver = 1;
         retval = version_ok(ptr, version);
         if (retval == -1)
             _fatal("You seem to be all patched up already!");
@@ -340,7 +342,7 @@
     if (io != NULL)
         fclose(io);
 
-    if (retval == 0) _fatal("Can't determine product's installed version.");
+    if (!knowver) _fatal("Can't determine product's installed version.");
     return(retval);
 } /* parse_info_dot_plist */