summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-12-23 18:54:54 (GMT)
committerPaul Eggert <eggert@cs.ucla.edu>2016-12-24 01:22:54 (GMT)
commita01232744cb71fdde44a3c8b50dcbf34181e16a1 (patch)
tree3bf709cde8e76a029cfe0a3ebdfa4b6a722b32fd
parent3cec0670866aaffbd4506ad934029f21983c99b9 (diff)
downloadgrep-a01232744cb71fdde44a3c8b50dcbf34181e16a1.zip
grep-a01232744cb71fdde44a3c8b50dcbf34181e16a1.tar.gz
grep-a01232744cb71fdde44a3c8b50dcbf34181e16a1.tar.bz2
grep: remove C label
* src/kwsearch.c (Fexecute): Remove label.
-rw-r--r--src/kwsearch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kwsearch.c b/src/kwsearch.c
index 7275973..d04d34c 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -103,7 +103,7 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
buf + size - beg + match_lines, &kwsmatch,
longest);
if (offset == (size_t) -1)
- goto failure;
+ break;
len = kwsmatch.size[0] - 2 * match_lines;
if (mb_check && mb_goback (&mb_start, beg + offset, buf + size) != 0)
{
@@ -157,7 +157,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
goto success;
} /* for (beg in buf) */
- failure:
return -1;
success: