Author: mturk
Date: Mon Mar 25 14:44:32 2013
New Revision: 1460687

URL: http://svn.apache.org/r1460687
Log:
Fix typo which can cause core if LD_LIBRARY_PATH was not set

Modified:
    commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c

Modified: 
commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
URL: 
http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c?rev=1460687&r1=1460686&r2=1460687&view=diff
==============================================================================
--- commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c 
(original)
+++ commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c Mon 
Mar 25 14:44:32 2013
@@ -1163,7 +1163,7 @@ int main(int argc, char *argv[])
          * PATH, so require that argv[0] be either an absolute or
          * relative path.  Error out if this isn't the case.
          */
-        tmp = strchr(oldpath,'/');
+        tmp = strchr(argv[0], '/');
         if (tmp == NULL) {
             log_error("JSVC re-exec requires execution with an absolute or 
relative path");
             return 1;


Reply via email to