Bugfix
Showing
2 changed files
with
11 additions
and
1 deletions
... | @@ -253,6 +253,7 @@ shell (mu_list_t list) | ... | @@ -253,6 +253,7 @@ shell (mu_list_t list) |
253 | mu_iterator_t itr[NITR]; | 253 | mu_iterator_t itr[NITR]; |
254 | int rc; | 254 | int rc; |
255 | 255 | ||
256 | memset (&itr, 0, sizeof itr); | ||
256 | num = 0; | 257 | num = 0; |
257 | while (1) | 258 | while (1) |
258 | { | 259 | { |
... | @@ -261,6 +262,14 @@ shell (mu_list_t list) | ... | @@ -261,6 +262,14 @@ shell (mu_list_t list) |
261 | int argc; | 262 | int argc; |
262 | char **argv; | 263 | char **argv; |
263 | 264 | ||
265 | if (!itr[num]) | ||
266 | { | ||
267 | rc = mu_list_get_iterator (list, &itr[num]); | ||
268 | if (rc) | ||
269 | lperror ("mu_list_get_iterator", rc); | ||
270 | mu_iterator_first (itr[num]); | ||
271 | } | ||
272 | |||
264 | rc = mu_iterator_current (itr[num], (void**) &text); | 273 | rc = mu_iterator_current (itr[num], (void**) &text); |
265 | if (rc) | 274 | if (rc) |
266 | lperror ("mu_iterator_current", rc); | 275 | lperror ("mu_iterator_current", rc); | ... | ... |
1 | # -*- tcl -*- | 1 | # -*- tcl -*- |
2 | # This file is part of Mailutils testsuite. | 2 | # This file is part of Mailutils testsuite. |
3 | # Copyright (C) 2003, 2005, 2007 Free Software Foundation | 3 | # Copyright (C) 2003, 2005, 2007, 2008 Free Software Foundation |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | 6 | # it under the terms of the GNU General Public License as published by |
... | @@ -63,6 +63,7 @@ prompt_text "tre" | ... | @@ -63,6 +63,7 @@ prompt_text "tre" |
63 | mailbox_prog_test "next 2" | 63 | mailbox_prog_test "next 2" |
64 | 64 | ||
65 | prompt_iterator 1 | 65 | prompt_iterator 1 |
66 | prompt_text "en" | ||
66 | mailbox_prog_test "iter 1" | 67 | mailbox_prog_test "iter 1" |
67 | 68 | ||
68 | prompt_text "to" | 69 | prompt_text "to" | ... | ... |
-
Please register or sign in to post a comment