Changeset 5710

"help" with no args should list everything, not crash callweaver

Comitted by:  mjagdis
Date:  Jun 04 2010 * 23:10 (about 1 year ago)

Affected files:

callweaver/trunk/corelib/cli.c (unified diff)

r5684r5710
828828 size_t mark;
829829 int i;
830830
831 for (i = 0; args->match[i]; i++)
832 if (strcasecmp(args->match[i], clicmd->cmda[i]))
833 goto out;
831 if (args->match) {
832 for (i = 0; args->match[i]; i++)
833 if (strcasecmp(args->match[i], clicmd->cmda[i]))
834 goto out;
835 }
834836
835837 mark = args->ds_p->used;
836838