Author: sebor
Date: Wed Apr 23 16:08:29 2008
New Revision: 651098
URL: http://svn.apache.org/viewvc?rev=651098&view=rev
Log:
2008-04-23 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-775
* test/localization/22.locale.time.get.cpp (make_LC_TIME): Asserted
postconditions to silence HP aCC 6/cadvise warning #20200: Potential
null pointer dereference.
Modified:
stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp
Modified: stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp?rev=651098&r1=651097&r2=651098&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp (original)
+++ stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp Wed Apr 23
16:08:29 2008
@@ -1141,6 +1141,9 @@
rw_fatal (0 != fout, 0, __LINE__,
"fopen(%#s, \"w\") failed: %{#m} - %m", srcfname);
+ // rw_fatal() doesn't return on failure
+ RW_ASSERT (0 != fout);
+
std::fprintf (fout, "LC_TIME\n");
unsigned i;
@@ -1278,6 +1281,9 @@
fout = std::fopen (cmfname, "w");
rw_fatal (0 != fout, 0, __LINE__,
"fopen(%#s, \"w\") failed: %{#m} - %m", cmfname);
+
+ // rw_fatal() doesn't return on failure
+ RW_ASSERT (0 != fout);
pcs_write (fout, 0);