...
|
...
|
@@ -265,7 +265,7 @@ static inline unsigned char spec_ith_char(const struct char_spec *spec, unsigned
|
265
|
265
|
{
|
266
|
266
|
const struct cli_ac_special *alt = spec->alt;
|
267
|
267
|
if (alt) {
|
268
|
|
- assert (alt->chmode);
|
|
268
|
+ assert (alt->type == 1);
|
269
|
269
|
assert (i < alt->num);
|
270
|
270
|
return alt->str[i];
|
271
|
271
|
}
|
...
|
...
|
@@ -441,7 +441,7 @@ int filter_add_acpatt(struct filter *m, const struct cli_ac_patt *pat)
|
441
|
441
|
break;
|
442
|
442
|
case CLI_MATCH_SPECIAL:
|
443
|
443
|
assert(pat->special_table);
|
444
|
|
- assert(altcnt < pat->alt);
|
|
444
|
+// assert(altcnt < pat->alt);
|
445
|
445
|
assert(pat->special_table[altcnt]);
|
446
|
446
|
switch (pat->special_table[altcnt++]->type) {
|
447
|
447
|
case 1: /* ALT_CHAR */
|