harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r801539 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c
Date Thu, 06 Aug 2009 08:46:12 GMT
Author: odeakin
Date: Thu Aug  6 08:46:11 2009
New Revision: 801539

URL: http://svn.apache.org/viewvc?rev=801539&view=rev
Log:
Move declaration of dummy variable to top of code block.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c?rev=801539&r1=801538&r2=801539&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/procimpl.c Thu
Aug  6 08:46:11 2009
@@ -151,6 +151,8 @@
   if (grdpid == -1) goto error;
 
   if (grdpid == 0) {
+    char dummy = '\0';
+
 #ifndef ZOS
     /* Close file descriptors that are not used */
     close(newFD[0][1]);
@@ -168,7 +170,6 @@
 #endif /* ZOS */
 
     /* Redirect pipes so grand-child inherits new pipes */
-    char dummy = '\0';
     dup2(newFD[0][0], 0);
     dup2(newFD[1][1], 1);
     dup2(newFD[2][1], 2);



Mime
View raw message