patch 8.2.3613: :find test fails
Problem: :find test fails.
Solution: Put length check inside if block.
diff --git a/src/findfile.c b/src/findfile.c
index b4aed04..4f457b9 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -1735,11 +1735,11 @@
proc->pr_WindowPtr = (APTR)-1L;
# endif
- if (len == 0)
- return NULL;
-
if (first == TRUE)
{
+ if (len == 0)
+ return NULL;
+
// copy file name into NameBuff, expanding environment variables
save_char = ptr[len];
ptr[len] = NUL;
diff --git a/src/version.c b/src/version.c
index 197f019..4f0dac7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3613,
+/**/
3612,
/**/
3611,