mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Fix uninitialised variable in test
This commit is contained in:
parent
58d9d3a9e5
commit
3b1d8035b2
1 changed files with 2 additions and 5 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue