Menu

#263 mfs findnext code looks wrond

v1.0_(example)
open
nobody
None
5
2014-01-06
2014-01-06
No

I am probably misreading the code, but
I can't see how the hlist stack works.
sdb_p_cluster(sdb), which is supposed
to carry an index in stack, is only
updated after hlist_push(). But I don't
see it being updated after hlist_pop()
or hlist_pop_psp(), so I wonder why is
there a stack: it looks like only the
last entry is being processed, and there
is no way to the prev entry, ever.
Also, I wonder what this code does:


  if (se->psp == psp)
    se->duplicates++;
  free_list(se, TRUE);
  goto exit;

Shouldn't it look as follows:

  if (se->psp == psp) {
    se->duplicates++;
    free_list(se, TRUE);
    goto exit;
  }

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.