harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r582740 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c
Date Mon, 08 Oct 2007 08:01:31 GMT
Author: hindessm
Date: Mon Oct  8 01:01:29 2007
New Revision: 582740

URL: http://svn.apache.org/viewvc?rev=582740&view=rev
Log:
Two minor coding errors.

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c?rev=582740&r1=582739&r2=582740&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyshsem.c Mon
Oct  8 01:01:29 2007
@@ -492,7 +492,7 @@
 
   hyshsem_close (portLibrary, handle);
 
-  if (rc = 0)
+  if (rc == 0)
     {
       Trc_PRT_shsem_hyshsem_destroy_Exit ();
     }
@@ -702,7 +702,7 @@
 
   result->baseFile =
     portLibrary->mem_allocate_memory (portLibrary, baseFileLength);
-  if (result == NULL)
+  if (result->baseFile == NULL)
     {
       portLibrary->mem_free_memory (portLibrary, result);
       return NULL;



Mime
View raw message