Merge pull request #1783 from SpecLad:cap-no-pattern

This commit is contained in:
Roman Donchenko 2013-11-12 11:52:49 +04:00 committed by OpenCV Buildbot
commit 6773914144

View File

@ -203,7 +203,7 @@ static char* icvExtractPattern(const char *filename, unsigned *offset)
for(at = name; *at && !isdigit(*at); at++)
;
if(!at)
if(!*at)
return 0;
sscanf(at, "%u", offset);