Commit 94e09f24 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed crash in test_core

parent 9a991a2e
......@@ -363,9 +363,10 @@ string tempfile( const char* suffix )
#endif
if (*name == '\\')
++name;
string n(name);
if (suffix != 0)
return string(buf) + suffix;
return buf;
n += (n[n.size()-1] == '.' && suffix[0] == '.' ? suffix + 1 : suffix);
return n;
}
static CvErrorCallback customErrorCallback = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment