[asterisk-commits] rizzo: branch rizzo/astobj2 r47299 -
/team/rizzo/astobj2/main/asterisk.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Nov 7 16:10:15 MST 2006
Author: rizzo
Date: Tue Nov 7 17:10:14 2006
New Revision: 47299
URL: http://svn.digium.com/view/asterisk?rev=47299&view=rev
Log:
fix "core show profile" argument parsing
Modified:
team/rizzo/astobj2/main/asterisk.c
Modified: team/rizzo/astobj2/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/asterisk.c?rev=47299&r1=47298&r2=47299&view=diff
==============================================================================
--- team/rizzo/astobj2/main/asterisk.c (original)
+++ team/rizzo/astobj2/main/asterisk.c Tue Nov 7 17:10:14 2006
@@ -447,13 +447,13 @@
min = 0;
max = prof_data->entries;
- if (argc >= 3) { /* specific entries */
- if (isdigit(argv[2][0])) {
- min = atoi(argv[2]);
- if (argc == 4 && strcmp(argv[3], "-"))
- max = atoi(argv[3]);
+ if (argc > 3) { /* specific entries */
+ if (isdigit(argv[3][0])) {
+ min = atoi(argv[3]);
+ if (argc == 5 && strcmp(argv[4], "-"))
+ max = atoi(argv[4]);
} else
- search = argv[2];
+ search = argv[3];
}
if (max > prof_data->entries)
max = prof_data->entries;
More information about the asterisk-commits
mailing list