Fix uninitialised variable in test

This commit is contained in:
Richard Frith-Macdonald 2022-12-05 10:35:24 +00:00
parent 58d9d3a9e5
commit 3b1d8035b2

View file

@ -340,19 +340,16 @@ static void testStart()
_pat = (id)(testExpect__);\
_exp = [[[NSRegularExpression alloc] initWithPattern: _pat \
options: 0 error: 0] autorelease];\
_cond = 0; \
if (nil != _dsc && nil != _exp) \
{ \
NSRange r = NSMakeRange(0, [_dsc length]);\
r = [_exp rangeOfFirstMatchInString: _dsc options: 0 range: r];\
if (r.length > 0)\
{ \
_cond = YES; \
_cond = 1; \
} \
} \
else \
{ \
_cond = NO; \
} \
pass(_cond, "%s:%d ... " testFormat__, __FILE__, \
__LINE__, ## __VA_ARGS__); \
if (0 == _cond) \