fixed crash in test_core

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 9a991a2e10
commit 94e09f24c7
  1. 5
      modules/core/src/system.cpp

@ -363,9 +363,10 @@ string tempfile( const char* suffix )
#endif #endif
if (*name == '\\') if (*name == '\\')
++name; ++name;
string n(name);
if (suffix != 0) if (suffix != 0)
return string(buf) + suffix; n += (n[n.size()-1] == '.' && suffix[0] == '.' ? suffix + 1 : suffix);
return buf; return n;
} }
static CvErrorCallback customErrorCallback = 0; static CvErrorCallback customErrorCallback = 0;

Loading…
Cancel
Save