notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9028744
)
fix deadlock on list seek
author
notaz
<notasas@gmail.com>
Sun, 8 Sep 2013 18:05:28 +0000
(21:05 +0300)
committer
notaz
<notasas@gmail.com>
Sun, 8 Sep 2013 18:05:28 +0000
(21:05 +0300)
menu.c
patch
|
blob
|
blame
|
history
diff --git
a/menu.c
b/menu.c
index
eb728da
..
2e97f06
100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-959,9
+959,11
@@
static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c)
int i;
\r
\r
sel++;
\r
- for (i = sel + 1;
i != sel
; i++) {
\r
+ for (i = sel + 1; ; i++) {
\r
if (i >= len)
\r
i = 1;
\r
+ if (i == sel)
\r
+ break;
\r
\r
if (tolower_simple(namelist[i]->d_name[0]) == c)
\r
break;
\r