stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r642861 - /stdcxx/trunk/tests/src/braceexp.cpp
Date Mon, 31 Mar 2008 02:54:52 GMT
Author: sebor
Date: Sun Mar 30 19:54:51 2008
New Revision: 642861

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

	* tests/src/braceexp.cpp (_rw_brace_graph::build_anything): Handled
	get_new_node's failure pointed out by HP aCC 6.16 warning #20200-D:
	Potential null pointer dereference is detected.

Modified:
    stdcxx/trunk/tests/src/braceexp.cpp

Modified: stdcxx/trunk/tests/src/braceexp.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/braceexp.cpp?rev=642861&r1=642860&r2=642861&view=diff
==============================================================================
--- stdcxx/trunk/tests/src/braceexp.cpp (original)
+++ stdcxx/trunk/tests/src/braceexp.cpp Sun Mar 30 19:54:51 2008
@@ -484,6 +484,9 @@
 
         // build a node for the prefix if there is one
         _rw_brace_node* prefix = get_new_node ();
+        if (!prefix)
+            return 0;
+              
         prefix->str_ = beg;
         prefix->len_ = (open_brace - beg);
 



Mime
View raw message