Description: Pointer variable should be dereferenced
 Pointer variable "f" in io.c, line 864 should be dereferenced but is not
Author: Michael Soyka <mssr953@gmail.com>
Origin: other, https://bugs.debian.org/1001069
Reviewed-by: Jose G. López <josgalo@jglopez.name>
Last-Update: 2022-07-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/io.c
+++ b/io.c
@@ -861,7 +861,7 @@
 
    /* Now we should have the fifty-move info */
    i = 0;
-   while (isdigit((int)*f) && f != '\0') /* find the end of the fifty-move info */
+   while (isdigit((int)*f) && *f != '\0') /* find the end of the fifty-move info */
       i = 10*i + (*f - '0'), f++;
    q.rule50 = i < 50 ? i : 50;
    if (i > 0 && p.m.special != 0) /* we have a "previous" move because of e.p. */
