You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2005/07/03 05:53:15 UTC

svn commit: r208879 - /apr/apr/trunk/threadproc/os2/proc.c

Author: bjh
Date: Sat Jul  2 20:53:13 2005
New Revision: 208879

URL: http://svn.apache.org/viewcvs?rev=208879&view=rev
Log:
OS/2: Fix crash in apr_proc_create with non-shell type process creation where
the .exe extension is not given. Was trying to close an apr_file_t that had
failed to open, causing a segfault.


Modified:
    apr/apr/trunk/threadproc/os2/proc.c

Modified: apr/apr/trunk/threadproc/os2/proc.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/threadproc/os2/proc.c?rev=208879&r1=208878&r2=208879&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/os2/proc.c (original)
+++ apr/apr/trunk/threadproc/os2/proc.c Sat Jul  2 20:53:13 2005
@@ -375,8 +375,9 @@
                     interpreter[0] = 0;
                 }
             }
+
+            apr_file_close(progfile);
         }
-        apr_file_close(progfile);
     }
 
     i = 0;