stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r637510 - /stdcxx/trunk/tests/src/fnmatch.cpp
Date Sun, 16 Mar 2008 02:14:21 GMT
Author: faridz
Date: Sat Mar 15 19:14:19 2008
New Revision: 637510

URL: http://svn.apache.org/viewvc?rev=637510&view=rev
Log:
2008-03-16 Farid Zaripov <farid_zaripov@epam.com>

	STDCXX-711
	* tests/src/fnmatch.cpp (rw_fnmatch): Check for the end of string
	before invoking _rw_bracketmatch().

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

Modified: stdcxx/trunk/tests/src/fnmatch.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/fnmatch.cpp?rev=637510&r1=637509&r2=637510&view=diff
==============================================================================
--- stdcxx/trunk/tests/src/fnmatch.cpp (original)
+++ stdcxx/trunk/tests/src/fnmatch.cpp Sat Mar 15 19:14:19 2008
@@ -190,6 +190,9 @@
                 esc = false;
             }
             else {
+                if ('\0' == *next)
+                    return 1;
+
                 pc = _rw_bracketmatch (pc + 1, UChar (*next), arg);
                 if (0 == pc)
                     return 1;



Mime
View raw message