stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r523050 - /incubator/stdcxx/trunk/tests/src/driver.cpp
Date Tue, 27 Mar 2007 19:40:16 GMT
Author: sebor
Date: Tue Mar 27 12:40:16 2007
New Revision: 523050

URL: http://svn.apache.org/viewvc?view=rev&rev=523050
Log:
2007-03-27  Martin Sebor  <sebor@roguewave.com>

	* driver.cpp (_rw_setopt_ulimit): Silenced gcc warning: missing
	initializer for member.
	(rw_vtest): Allowed test source file name to be null.

Modified:
    incubator/stdcxx/trunk/tests/src/driver.cpp

Modified: incubator/stdcxx/trunk/tests/src/driver.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/driver.cpp?view=diff&rev=523050&r1=523049&r2=523050
==============================================================================
--- incubator/stdcxx/trunk/tests/src/driver.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/driver.cpp Tue Mar 27 12:40:16 2007
@@ -705,7 +705,7 @@
 #ifdef RLIMIT_AS
         { "as", "AS", "As", RLIMIT_AS },
 #endif   // RLIMIT_AS
-        { 0, 0 }
+        { 0, 0, 0, 0 }
     };
 
     const char* arg = strchr (argv [0], '=');
@@ -1015,7 +1015,9 @@
         "######################################################"
     };
 
-    const char* const fname = strrchr (file_name, _RWSTD_PATH_SEP);
+    // allow file_name to be null
+    const char* const fname =
+        file_name ? strrchr (file_name, _RWSTD_PATH_SEP) : 0;
 
     rw_info (0, 0, 0,
              begin_fmt,



Mime
View raw message