mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix anthm formatting (bug #3013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
16
app.c
16
app.c
@@ -1073,15 +1073,15 @@ int ast_app_group_match_get_count(char *groupmatch, char *category)
|
||||
|
||||
int ast_seperate_app_args(char *buf, char delim, char **array, int arraylen)
|
||||
{
|
||||
int x = 0;
|
||||
memset(array, 0, arraylen * sizeof(char *));
|
||||
int x = 0;
|
||||
memset(array, 0, arraylen * sizeof(char *));
|
||||
if (!buf)
|
||||
return 0;
|
||||
for (array[x] = buf ; x < arraylen && array[x]; x++) {
|
||||
if ((array[x+1] = strchr(array[x], delim))) {
|
||||
*array[x+1] = '\0';
|
||||
array[x+1]++;
|
||||
}
|
||||
}
|
||||
for (array[x] = buf ; x < arraylen && array[x]; x++) {
|
||||
if ((array[x+1] = strchr(array[x], delim))) {
|
||||
*array[x+1] = '\0';
|
||||
array[x+1]++;
|
||||
}
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
Reference in New Issue
Block a user