(comtch, stmtch): Make more similar, document. No functional changes.
This commit is contained in:
parent
18fdb41bd0
commit
66eaa28f92
2 changed files with 14 additions and 11 deletions
|
@ -56,7 +56,7 @@ stmtch(char *needle, void *haystack, ptrdiff_t offs, size_t elt_size)
|
|||
case ME_MISMATCH:
|
||||
break;
|
||||
case ME_PARTIAL:
|
||||
if (res != M_NOTFOUND)
|
||||
if (res >= 0)
|
||||
return M_NOTUNIQUE;
|
||||
res = i;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue