Projects STRLCPY criu Commits 94ac9ee3
🤬
  • proc_parse: fix while condition in parse_pid_status

    In parse_pid_status there are 13 places where we do done++, so when
    "done" is 13 it means that we have matched each of those 13 places and
    we are ready to stop. In next lines we are not going to find anything.
    
    So the right condition for the while loop is (done < 13).
    
    Signed-off-by: Pavel Tikhomirov <[email protected]>
  • Loading...
  • Pavel Tikhomirov committed with Andrei Vagin 1 year ago
    94ac9ee3
    1 parent 45e4a6b2
  • ■ ■ ■ ■
    criu/proc_parse.c
    skipped 1042 lines
    1043 1043   if (bfdopenr(&f))
    1044 1044   return -1;
    1045 1045   
    1046  - while (done < 14) {
     1046 + while (done < 13) {
    1047 1047   str = breadline(&f);
    1048 1048   if (str == NULL)
    1049 1049   break;
    skipped 1806 lines
Please wait...
Page is in error, reload to recover