diff options
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ rb_memsearch_ss(const unsigned char *xs, long m, const unsigned char *ys, long n { const unsigned char *y; - if (y = memmem(ys, n, xs, m)) + if ((y = memmem(ys, n, xs, m)) != NULL) return y - ys; else return -1; |