You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/03/16 03:14:21 UTC
svn commit: r637510 - /stdcxx/trunk/tests/src/fnmatch.cpp
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 <fa...@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;