tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject svn commit: r532054 - /tomcat/connectors/trunk/jk/native/common/jk_map.c
Date Tue, 24 Apr 2007 19:43:58 GMT
Author: hgomez
Date: Tue Apr 24 12:43:57 2007
New Revision: 532054

URL: http://svn.apache.org/viewvc?view=rev&rev=532054
Log:
fix Missing statbuf

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_map.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?view=diff&rev=532054&r1=532053&r2=532054
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Tue Apr 24 12:43:57 2007
@@ -873,9 +873,9 @@
             }
             fclose(fp);
             if (modified) {
-            	struct stat statbuf;
-				jk_stat(f, &statbuf);
-                *modified = statbuf.st_mtime;
+                struct stat statbuf;
+                if (jk_stat(f, &statbuf) != -1)
+                	*modified = statbuf.st_mtime;
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message