Skip to content

Commit

Permalink
Fixing static analyzer issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanX2 committed Feb 12, 2013
1 parent dc35414 commit 0e699c7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions DiffMatchPatchCFUtilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,19 @@ CFIndex diff_cleanupSemanticScore(CFStringRef one, CFStringRef two) {
controlSet = CFCharacterSetGetPredefined(kCFCharacterSetControl);

// Define some regex patterns for matching boundaries.
#ifdef DEBUG_CLEANUP_SEMANTIC_SCORE
int status;
status = regcomp(&blankLineEndRegEx, "\n\r?\n$", REG_EXTENDED | REG_NOSUB);
status =
#endif
regcomp(&blankLineEndRegEx, "\n\r?\n$", REG_EXTENDED | REG_NOSUB);
#ifdef DEBUG_CLEANUP_SEMANTIC_SCORE
check(status == 0);
status = regcomp(&blankLineStartRegEx, "^\r?\n\r?\n", REG_EXTENDED | REG_NOSUB);
status =
#endif
regcomp(&blankLineStartRegEx, "^\r?\n\r?\n", REG_EXTENDED | REG_NOSUB);
#ifdef DEBUG_CLEANUP_SEMANTIC_SCORE
check(status == 0);
#endif

firstRun = false;
}
Expand Down

0 comments on commit 0e699c7

Please sign in to comment.